redmine-ui-kit 1.6.20 → 1.6.22

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 },
@@ -389,7 +389,9 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
389
389
  contentClass: { default: "" },
390
390
  transitionName: { default: "" },
391
391
  contentTransition: { default: "" },
392
- rootAttributes: {}
392
+ rootAttributes: {},
393
+ appendTo: { default: "body" },
394
+ defer: { type: Boolean, default: !1 }
393
395
  },
394
396
  emits: ["close"],
395
397
  setup(e, { emit: a }) {
@@ -397,16 +399,19 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
397
399
  function l() {
398
400
  t.persistent || n("close");
399
401
  }
400
- return (r, o) => (p(), be(Ya, { to: "body" }, [
402
+ return (r, o) => (p(), be(Ya, {
403
+ to: r.appendTo,
404
+ defer: r.defer
405
+ }, [
401
406
  Oe(rt, {
402
407
  name: r.transitionName,
403
408
  appear: ""
404
409
  }, {
405
410
  default: ve(() => [
406
- r.isActive ? Xe((p(), C("div", Fe({ key: 0 }, r.rootAttributes, { class: "rm-modal" }), [
411
+ r.isActive ? Xe((p(), C("div", Ie({ key: 0 }, r.rootAttributes, { class: "rm-modal" }), [
407
412
  z("div", {
408
413
  class: "rm-modal__overlay",
409
- onClick: Dt(l, ["self"])
414
+ onClick: Tt(l, ["self"])
410
415
  }),
411
416
  Oe(rt, {
412
417
  name: r.contentTransition.length ? r.contentTransition : r.transitionName,
@@ -447,7 +452,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
447
452
  ]),
448
453
  _: 3
449
454
  }, 8, ["name"])
450
- ]));
455
+ ], 8, ["to", "defer"]));
451
456
  }
452
457
  }), jr = (e, a = 150) => {
453
458
  let t;
@@ -506,21 +511,23 @@ function Kr(e, a, t) {
506
511
  left: s,
507
512
  right: m,
508
513
  width: b,
509
- height: y
514
+ height: g
510
515
  } = n.getBoundingClientRect(), {
511
516
  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;
517
+ height: h
518
+ } = l.getBoundingClientRect(), { innerWidth: f, innerHeight: T } = window, _ = f - s - u > 0;
519
+ return r.top = o + g, r.minWidth = b, T < o + h && (r.top = o - h), r.left = _ ? s : m - u, r;
515
520
  }
516
- const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
521
+ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ De({
517
522
  __name: "RMDropdown",
518
523
  props: {
519
524
  transition: { default: "dropdown-slide" },
520
525
  manualClose: { type: Boolean, default: !1 },
521
526
  contentClass: { default: "" },
522
527
  closeImmediate: { type: Boolean, default: !1 },
523
- active: { type: Boolean, default: !1 }
528
+ active: { type: Boolean, default: !1 },
529
+ appendTo: { default: "body" },
530
+ defer: { type: Boolean, default: !1 }
524
531
  },
525
532
  setup(e) {
526
533
  const a = {
@@ -535,26 +542,26 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
535
542
  }
536
543
  function b() {
537
544
  l.value = !0;
538
- const g = document.querySelector("[data-scroll-target]") ?? document;
545
+ const h = document.querySelector("[data-scroll-target]") ?? document;
539
546
  n = [
540
- Fn(g, "scroll", m),
547
+ Fn(h, "scroll", m),
541
548
  Fn(window, "resize", m)
542
549
  ];
543
550
  }
544
- function y() {
551
+ function g() {
545
552
  l.value = !1, setTimeout(() => {
546
- n !== null && n.forEach((g) => g()), r.value = { ...a };
553
+ n !== null && n.forEach((h) => h()), r.value = { ...a };
547
554
  });
548
555
  }
549
556
  function u() {
550
- l.value ? y() : b();
557
+ l.value ? g() : b();
551
558
  }
552
559
  return qe(() => {
553
560
  l.value = t.active;
554
561
  }), lt(
555
562
  () => t.closeImmediate,
556
- (g) => {
557
- g && y();
563
+ (h) => {
564
+ h && g();
558
565
  }
559
566
  ), lt(
560
567
  l,
@@ -565,7 +572,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
565
572
  immediate: !0,
566
573
  flush: "post"
567
574
  }
568
- ), (g, f) => Xe((p(), C("div", eo, [
575
+ ), (h, f) => Xe((p(), C("div", eo, [
569
576
  z("div", {
570
577
  ref_key: "targetRef",
571
578
  ref: o,
@@ -573,35 +580,38 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
573
580
  class: "rm-dropdown__trigger",
574
581
  onClick: u
575
582
  }, [
576
- ne(g.$slots, "trigger")
583
+ ne(h.$slots, "trigger")
577
584
  ], 512),
578
- (p(), be(Ya, { to: "body" }, [
579
- Oe(rt, { name: g.transition }, {
585
+ (p(), be(Ya, {
586
+ to: h.appendTo,
587
+ defer: h.defer
588
+ }, [
589
+ Oe(rt, { name: h.transition }, {
580
590
  default: ve(() => [
581
591
  l.value ? (p(), C("div", {
582
592
  key: 0,
583
593
  ref_key: "dropdownRef",
584
594
  ref: s,
585
595
  "aria-hidden": "true",
586
- class: ye(["rm-dropdown__content", g.contentClass]),
596
+ class: ye(["rm-dropdown__content", h.contentClass]),
587
597
  style: tt({
588
598
  top: `${r.value.top}px`,
589
599
  left: `${r.value.left}px`,
590
600
  minWidth: `${r.value.minWidth}px`
591
601
  }),
592
- onClick: f[0] || (f[0] = (D) => !g.manualClose && y())
602
+ onClick: f[0] || (f[0] = (T) => !h.manualClose && g())
593
603
  }, [
594
- ne(g.$slots, "content", {
604
+ ne(h.$slots, "content", {
595
605
  openDropdown: b,
596
- closeDropdown: y
606
+ closeDropdown: g
597
607
  })
598
608
  ], 6)) : N("", !0)
599
609
  ]),
600
610
  _: 3
601
611
  }, 8, ["name"])
602
- ]))
612
+ ], 8, ["to", "defer"]))
603
613
  ])), [
604
- [c(or), () => !g.manualClose && y()]
614
+ [c(or), () => !h.manualClose && g()]
605
615
  ]);
606
616
  }
607
617
  }), ao = ["id"], no = {
@@ -692,7 +702,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
692
702
  ], -1), bo = ["model-value", "placeholder"], wo = ["onClick"], _o = {
693
703
  key: 2,
694
704
  class: "rm-select-inner-list__item rm-select-inner-list__item--empty"
695
- }, bc = /* @__PURE__ */ Te({
705
+ }, bc = /* @__PURE__ */ De({
696
706
  __name: "RMSelect",
697
707
  props: {
698
708
  name: {},
@@ -713,14 +723,15 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
713
723
  infinityScrollOptions: { default: () => ({
714
724
  distance: 10,
715
725
  interval: 500
716
- }) }
726
+ }) },
727
+ dropdownOptions: {}
717
728
  },
718
729
  emits: ["update:modelValue", "clear", "select", "chips:remove", "load-more"],
719
730
  setup(e, { emit: a }) {
720
731
  const t = e, n = a, l = Wt(null), r = Wt(null), o = Wt(null), s = Wt(null), m = U({
721
732
  width: Number.POSITIVE_INFINITY,
722
733
  height: Number.POSITIVE_INFINITY
723
- }), b = U(!1), y = U(""), u = t.withInfinityScroll ? t.infinityScrollOptions : {
734
+ }), b = U(!1), g = U(""), u = t.withInfinityScroll ? t.infinityScrollOptions : {
724
735
  // canLoadMore: () => false,
725
736
  };
726
737
  rr(
@@ -728,9 +739,9 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
728
739
  () => n("load-more"),
729
740
  u
730
741
  );
731
- const g = H(() => {
742
+ const h = H(() => {
732
743
  const x = W(t.options);
733
- return t.searchable && y.value ? x.filter(({ name: S }) => S.toString().toLowerCase().includes(y.value.toLowerCase())) : x;
744
+ return t.searchable && g.value ? x.filter(({ name: S }) => S.toString().toLowerCase().includes(g.value.toLowerCase())) : x;
734
745
  }), f = H(() => {
735
746
  var S;
736
747
  if (!t.modelValue)
@@ -741,7 +752,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
741
752
  return t.chips ? k : k.map(({ name: Y }) => Y).join(", ");
742
753
  }
743
754
  return ((S = x.find(({ value: k }) => k === t.modelValue)) == null ? void 0 : S.name.toString()) ?? "";
744
- }), D = H(() => {
755
+ }), T = H(() => {
745
756
  if (!o.value)
746
757
  return !1;
747
758
  const x = m.value.width - (o.value.clientWidth + o.value.getBoundingClientRect().left + 4);
@@ -753,7 +764,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
753
764
  whiteSpace: "normal"
754
765
  };
755
766
  }), _ = jr(function({ target: x }) {
756
- y.value = x.value;
767
+ g.value = x.value;
757
768
  }, 300);
758
769
  function W(x) {
759
770
  return typeof x[0] == "string" || typeof x[0] == "number" ? x.map((S) => ({ name: S, value: S })) : t.options;
@@ -768,14 +779,14 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
768
779
  }
769
780
  if (t.modelValue.includes(x.value)) {
770
781
  const S = t.modelValue.filter((k) => k !== x.value);
771
- n("update:modelValue", S), n("select", g.value.filter(({ value: k }) => S.includes(k)));
782
+ n("update:modelValue", S), n("select", h.value.filter(({ value: k }) => S.includes(k)));
772
783
  } else {
773
784
  const S = [...t.modelValue, x.value];
774
- n("update:modelValue", S), n("select", g.value.filter(({ value: k }) => S.includes(k)));
785
+ n("update:modelValue", S), n("select", h.value.filter(({ value: k }) => S.includes(k)));
775
786
  }
776
787
  }
777
788
  function O() {
778
- !t.searchable || !y.value || (y.value = "", r.value && r.value.value && (r.value.value = ""));
789
+ !t.searchable || !g.value || (g.value = "", r.value && r.value.value && (r.value.value = ""));
779
790
  }
780
791
  function R() {
781
792
  m.value.width = window.innerWidth, m.value.height = window.innerHeight;
@@ -800,12 +811,13 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
800
811
  class: "rm-select__label",
801
812
  onClick: S[0] || (S[0] = (k) => b.value = !b.value)
802
813
  }, ke(x.label), 1)) : N("", !0),
803
- Oe(to, {
814
+ Oe(to, Ie({
804
815
  active: x.opened,
805
- "manual-close": x.multiple,
816
+ "manual-close": x.multiple
817
+ }, x.dropdownOptions, {
806
818
  class: "rm-select-dropdown",
807
819
  "content-class": "rm-select-dropdown-content"
808
- }, {
820
+ }), {
809
821
  trigger: ve(() => [
810
822
  z("div", {
811
823
  class: ye([
@@ -829,7 +841,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
829
841
  }, null, 8, ao),
830
842
  x.$slots["slot-placeholder"] ? ne(x.$slots, "slot-placeholder", {
831
843
  key: 1,
832
- options: g.value,
844
+ options: h.value,
833
845
  selected: f.value
834
846
  }) : (p(), C(_e, { key: 0 }, [
835
847
  x.placeholder && (x.staticPlaceholder || !f.value) ? (p(), C("div", no, [
@@ -848,7 +860,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
848
860
  z("button", {
849
861
  class: "rm-select-chip__btn",
850
862
  type: "button",
851
- onClick: Dt((ee) => P(k), ["stop"])
863
+ onClick: Tt((ee) => P(k), ["stop"])
852
864
  }, mo, 8, uo)
853
865
  ]))), 128))
854
866
  ])) : N("", !0)
@@ -865,7 +877,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
865
877
  key: 0,
866
878
  class: "rm-select-input-controls__btn rm-select-input-controls__btn--remove",
867
879
  type: "button",
868
- onClick: Dt(G, ["stop"])
880
+ onClick: Tt(G, ["stop"])
869
881
  }, ho)) : N("", !0)
870
882
  ]),
871
883
  _: 1
@@ -880,14 +892,14 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
880
892
  ref_key: "optionsWrapperRef",
881
893
  ref: o,
882
894
  class: "rm-select-inner",
883
- style: tt(D.value)
895
+ style: tt(T.value)
884
896
  }, [
885
897
  x.searchable ? (p(), C("div", yo, [
886
898
  go,
887
899
  z("input", {
888
900
  ref_key: "searchInputRef",
889
901
  ref: r,
890
- "model-value": y.value,
902
+ "model-value": g.value,
891
903
  type: "text",
892
904
  class: "rm-select-inner__search-input",
893
905
  placeholder: x.searchPlaceholder,
@@ -895,10 +907,10 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
895
907
  (...Y) => c(_) && c(_)(...Y))
896
908
  }, null, 40, bo)
897
909
  ])) : N("", !0),
898
- g.value && g.value.length ? (p(), C(_e, { key: 1 }, [
910
+ h.value && h.value.length ? (p(), C(_e, { key: 1 }, [
899
911
  x.$slots["slot-options"] ? ne(x.$slots, "slot-options", {
900
912
  key: 1,
901
- options: g.value,
913
+ options: h.value,
902
914
  selected: f.value,
903
915
  isFocus: b.value,
904
916
  close: () => b.value = !1
@@ -908,7 +920,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
908
920
  ref: s,
909
921
  class: "rm-select-inner-list"
910
922
  }, [
911
- (p(!0), C(_e, null, Ee(g.value, (Y, ee) => (p(), C("li", {
923
+ (p(!0), C(_e, null, Ee(h.value, (Y, ee) => (p(), C("li", {
912
924
  key: `${ee}_option`,
913
925
  class: ye([
914
926
  "rm-select-inner-list__item",
@@ -925,7 +937,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
925
937
  name: Y.name.toString(),
926
938
  checked: x.modelValue.includes(Y.value),
927
939
  class: "rm-select-inner-list__item-checkbox",
928
- onClick: Dt((oe) => P(Y), ["stop", "prevent"])
940
+ onClick: Tt((oe) => P(Y), ["stop", "prevent"])
929
941
  }, null, 8, ["model-value", "name", "checked", "onClick"])) : N("", !0),
930
942
  z("span", null, ke(Y.name), 1)
931
943
  ], 10, wo))), 128))
@@ -940,7 +952,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
940
952
  }, 1024)
941
953
  ]),
942
954
  _: 3
943
- }, 8, ["active", "manual-close"])
955
+ }, 16, ["active", "manual-close"])
944
956
  ], 2)), [
945
957
  [c(ta), () => b.value = !1]
946
958
  ]);
@@ -950,13 +962,13 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
950
962
  for (const [n, l] of a)
951
963
  t[n] = l;
952
964
  return t;
953
- }, Mo = {}, Do = {
965
+ }, Mo = {}, To = {
954
966
  width: "13",
955
967
  height: "15",
956
968
  viewBox: "0 0 13 15",
957
969
  fill: "none",
958
970
  xmlns: "http://www.w3.org/2000/svg"
959
- }, To = /* @__PURE__ */ z("path", {
971
+ }, Do = /* @__PURE__ */ z("path", {
960
972
  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
973
  fill: "#96B8D4"
962
974
  }, null, -1), Po = /* @__PURE__ */ z("rect", {
@@ -965,11 +977,11 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
965
977
  height: "2",
966
978
  fill: "#96B8D4"
967
979
  }, null, -1), xo = [
968
- To,
980
+ Do,
969
981
  Po
970
982
  ];
971
983
  function $o(e, a) {
972
- return p(), C("svg", Do, xo);
984
+ return p(), C("svg", To, xo);
973
985
  }
974
986
  const Co = /* @__PURE__ */ ko(Mo, [["render", $o]]), Ao = {
975
987
  key: 0,
@@ -980,7 +992,7 @@ const Co = /* @__PURE__ */ ko(Mo, [["render", $o]]), Ao = {
980
992
  }, Eo = {
981
993
  key: 1,
982
994
  class: "rm-editable__footer-actions"
983
- }, wc = /* @__PURE__ */ Te({
995
+ }, wc = /* @__PURE__ */ De({
984
996
  __name: "RMEditable",
985
997
  props: {
986
998
  value: { default: "" },
@@ -1006,19 +1018,19 @@ const Co = /* @__PURE__ */ ko(Mo, [["render", $o]]), Ao = {
1006
1018
  function b() {
1007
1019
  t.editByFocus && m();
1008
1020
  }
1009
- function y() {
1021
+ function g() {
1010
1022
  s.value = t.value, r.value = null;
1011
1023
  }
1012
1024
  function u() {
1013
- l.value && l.value.blur(), o.value = !1, y();
1025
+ l.value && l.value.blur(), o.value = !1, g();
1014
1026
  }
1015
- function g() {
1027
+ function h() {
1016
1028
  l.value && r.value && (l.value.innerHTML = r.value), u();
1017
1029
  }
1018
1030
  function f() {
1019
1031
  l.value && (s.value = l.value.innerText.trim());
1020
1032
  }
1021
- function D() {
1033
+ function T() {
1022
1034
  n("change", s.value), u();
1023
1035
  }
1024
1036
  return (_, W) => Xe((p(), C("div", {
@@ -1043,7 +1055,7 @@ const Co = /* @__PURE__ */ ko(Mo, [["render", $o]]), Ao = {
1043
1055
  }
1044
1056
  ]),
1045
1057
  onInput: f,
1046
- onBlur: D
1058
+ onBlur: T
1047
1059
  }, [
1048
1060
  ne(_.$slots, "default", { value: _.value })
1049
1061
  ], 42, Oo),
@@ -1070,19 +1082,19 @@ const Co = /* @__PURE__ */ ko(Mo, [["render", $o]]), Ao = {
1070
1082
  flat: "",
1071
1083
  type: "button",
1072
1084
  class: "rm-common-button rm-common-button--flat rm-common-button--blue",
1073
- onClick: D
1085
+ onClick: T
1074
1086
  }, null, 8, ["label", "disabled"]),
1075
1087
  Oe(qt, {
1076
1088
  label: _.cancelLabel,
1077
1089
  flat: "",
1078
1090
  type: "button",
1079
1091
  class: "rm-common-button rm-common-button--flat",
1080
- onClick: g
1092
+ onClick: h
1081
1093
  }, null, 8, ["label"])
1082
1094
  ])) : N("", !0)
1083
1095
  ])) : N("", !0)
1084
1096
  ], 2)), [
1085
- [c(ta), g]
1097
+ [c(ta), h]
1086
1098
  ]);
1087
1099
  }
1088
1100
  }), Yo = {
@@ -1105,7 +1117,7 @@ function Io(e, a) {
1105
1117
  const No = { render: Io }, Fo = {
1106
1118
  key: 0,
1107
1119
  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({
1120
+ }, 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
1121
  __name: "RMAlert",
1110
1122
  props: {
1111
1123
  title: { default: "Error" },
@@ -1156,7 +1168,7 @@ const No = { render: Io }, Fo = {
1156
1168
  }), qo = {
1157
1169
  key: 0,
1158
1170
  class: "rm-confirm"
1159
- }, Uo = { class: "rm-confirm__title" }, Go = { class: "rm-confirm-controls" }, kc = /* @__PURE__ */ Te({
1171
+ }, Uo = { class: "rm-confirm__title" }, Go = { class: "rm-confirm-controls" }, kc = /* @__PURE__ */ De({
1160
1172
  __name: "RMConfirm",
1161
1173
  props: {
1162
1174
  title: { default: "" },
@@ -1193,7 +1205,7 @@ const No = { render: Io }, Fo = {
1193
1205
  }), Qo = {
1194
1206
  key: 0,
1195
1207
  class: "rm-hint"
1196
- }, Mc = /* @__PURE__ */ Te({
1208
+ }, Mc = /* @__PURE__ */ De({
1197
1209
  __name: "RMHint",
1198
1210
  props: {
1199
1211
  isActive: { type: Boolean, default: !1 }
@@ -1248,8 +1260,8 @@ function ul(e, a) {
1248
1260
  hours: o = 0,
1249
1261
  minutes: s = 0,
1250
1262
  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);
1263
+ } = a, b = pe(e), g = n || t ? yt(b, n + t * 12) : b, u = r || l ? ft(g, r + l * 7) : g, h = s + o * 60, T = (m + h * 60) * 1e3;
1264
+ return xe(e, u.getTime() + T);
1253
1265
  }
1254
1266
  function Xo(e, a) {
1255
1267
  const t = +pe(e);
@@ -1264,8 +1276,8 @@ function Qt() {
1264
1276
  return ts;
1265
1277
  }
1266
1278
  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;
1279
+ var s, m, b, g;
1280
+ const t = Qt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.weekStartsOn) ?? t.weekStartsOn ?? ((g = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : g.weekStartsOn) ?? 0, l = pe(e), r = l.getDay(), o = (r < n ? 7 : 0) + r - n;
1269
1281
  return l.setDate(l.getDate() - o), l.setHours(0, 0, 0, 0), l;
1270
1282
  }
1271
1283
  function aa(e) {
@@ -1359,8 +1371,8 @@ function gn(e) {
1359
1371
  return t.setFullYear(a.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
1360
1372
  }
1361
1373
  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);
1374
+ var s, m, b, g;
1375
+ const t = Qt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.weekStartsOn) ?? t.weekStartsOn ?? ((g = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : g.weekStartsOn) ?? 0, l = pe(e), r = l.getDay(), o = (r < n ? -7 : 0) + 6 - (r - n);
1364
1376
  return l.setDate(l.getDate() + o), l.setHours(23, 59, 59, 999), l;
1365
1377
  }
1366
1378
  function zn(e) {
@@ -1656,8 +1668,8 @@ function pa(e) {
1656
1668
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1657
1669
  t.valueCallback(b)
1658
1670
  ) : b;
1659
- const y = a.slice(o.length);
1660
- return { value: b, rest: y };
1671
+ const g = a.slice(o.length);
1672
+ return { value: b, rest: g };
1661
1673
  };
1662
1674
  }
1663
1675
  function _s(e, a) {
@@ -1684,7 +1696,7 @@ function Ms(e) {
1684
1696
  return { value: o, rest: s };
1685
1697
  };
1686
1698
  }
1687
- const Ds = /^(\d+)(th|st|nd|rd)?/i, Ts = /\d+/i, Ps = {
1699
+ const Ts = /^(\d+)(th|st|nd|rd)?/i, Ds = /\d+/i, Ps = {
1688
1700
  narrow: /^(b|a)/i,
1689
1701
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1690
1702
  wide: /^(before christ|before common era|anno domini|common era)/i
@@ -1753,8 +1765,8 @@ const Ds = /^(\d+)(th|st|nd|rd)?/i, Ts = /\d+/i, Ps = {
1753
1765
  }
1754
1766
  }, Bs = {
1755
1767
  ordinalNumber: Ms({
1756
- matchPattern: Ds,
1757
- parsePattern: Ts,
1768
+ matchPattern: Ts,
1769
+ parsePattern: Ds,
1758
1770
  valueCallback: (e) => parseInt(e, 10)
1759
1771
  }),
1760
1772
  era: pa({
@@ -1809,8 +1821,8 @@ function bn(e) {
1809
1821
  return Math.round(t / dl) + 1;
1810
1822
  }
1811
1823
  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);
1824
+ var g, u, h, f;
1825
+ const t = pe(e), n = t.getFullYear(), l = Qt(), r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((u = (g = a == null ? void 0 : a.locale) == null ? void 0 : g.options) == null ? void 0 : u.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((f = (h = l.locale) == null ? void 0 : h.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = xe(e, 0);
1814
1826
  o.setFullYear(n + 1, 0, r), o.setHours(0, 0, 0, 0);
1815
1827
  const s = gt(o, a), m = xe(e, 0);
1816
1828
  m.setFullYear(n, 0, r), m.setHours(0, 0, 0, 0);
@@ -1818,8 +1830,8 @@ function wn(e, a) {
1818
1830
  return t.getTime() >= s.getTime() ? n + 1 : t.getTime() >= b.getTime() ? n : n - 1;
1819
1831
  }
1820
1832
  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);
1833
+ var s, m, b, g;
1834
+ const t = Qt(), n = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((g = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, l = wn(e, a), r = xe(e, 0);
1823
1835
  return r.setFullYear(l, 0, n), r.setHours(0, 0, 0, 0), gt(r, a);
1824
1836
  }
1825
1837
  function _n(e, a) {
@@ -2457,9 +2469,9 @@ function Ws(e, a, t) {
2457
2469
  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
2470
  }
2459
2471
  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);
2472
+ function Dt(e, a, t) {
2473
+ var g, u, h, f, T, _, W, G;
2474
+ const n = Qt(), l = (t == null ? void 0 : t.locale) ?? n.locale ?? gl, r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (g = t == null ? void 0 : t.locale) == null ? void 0 : g.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (T = t == null ? void 0 : t.locale) == null ? void 0 : T.options) == null ? void 0 : _.weekStartsOn) ?? n.weekStartsOn ?? ((G = (W = n.locale) == null ? void 0 : W.options) == null ? void 0 : G.weekStartsOn) ?? 0, s = pe(e);
2463
2475
  if (!ya(s))
2464
2476
  throw new RangeError("Invalid time value");
2465
2477
  let m = a.match(js).map((P) => {
@@ -2748,7 +2760,7 @@ function kn(e) {
2748
2760
  return 0;
2749
2761
  }
2750
2762
  }
2751
- function Dl(e, a) {
2763
+ function Tl(e, a) {
2752
2764
  const t = a > 0, n = t ? a : 1 - a;
2753
2765
  let l;
2754
2766
  if (n <= 50)
@@ -2759,7 +2771,7 @@ function Dl(e, a) {
2759
2771
  }
2760
2772
  return t ? l : 1 - l;
2761
2773
  }
2762
- function Tl(e) {
2774
+ function Dl(e) {
2763
2775
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
2764
2776
  }
2765
2777
  class ri extends $e {
@@ -2793,7 +2805,7 @@ class ri extends $e {
2793
2805
  set(t, n, l) {
2794
2806
  const r = t.getFullYear();
2795
2807
  if (l.isTwoDigitYear) {
2796
- const s = Dl(
2808
+ const s = Tl(
2797
2809
  l.year,
2798
2810
  r
2799
2811
  );
@@ -2848,7 +2860,7 @@ class oi extends $e {
2848
2860
  set(t, n, l, r) {
2849
2861
  const o = wn(t, r);
2850
2862
  if (l.isTwoDigitYear) {
2851
- const m = Dl(
2863
+ const m = Tl(
2852
2864
  l.year,
2853
2865
  o
2854
2866
  );
@@ -3281,7 +3293,7 @@ class bi extends $e {
3281
3293
  }
3282
3294
  }
3283
3295
  validate(t, n) {
3284
- const l = t.getFullYear(), r = Tl(l), o = t.getMonth();
3296
+ const l = t.getFullYear(), r = Dl(l), o = t.getMonth();
3285
3297
  return r ? n >= 1 && n <= gi[o] : n >= 1 && n <= yi[o];
3286
3298
  }
3287
3299
  set(t, n, l) {
@@ -3324,16 +3336,16 @@ class wi extends $e {
3324
3336
  }
3325
3337
  validate(t, n) {
3326
3338
  const l = t.getFullYear();
3327
- return Tl(l) ? n >= 1 && n <= 366 : n >= 1 && n <= 365;
3339
+ return Dl(l) ? n >= 1 && n <= 366 : n >= 1 && n <= 365;
3328
3340
  }
3329
3341
  set(t, n, l) {
3330
3342
  return t.setMonth(0, l), t.setHours(0, 0, 0, 0), t;
3331
3343
  }
3332
3344
  }
3333
3345
  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);
3346
+ var u, h, f, T;
3347
+ const n = Qt(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((h = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : h.weekStartsOn) ?? n.weekStartsOn ?? ((T = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : T.weekStartsOn) ?? 0, r = pe(e), o = r.getDay(), m = (a % 7 + 7) % 7, b = 7 - l, g = a < 0 || a > 6 ? a - (o + b) % 7 : (m + b) % 7 - (o + b) % 7;
3348
+ return ft(r, g);
3337
3349
  }
3338
3350
  class _i extends $e {
3339
3351
  constructor() {
@@ -3502,11 +3514,11 @@ class Mi extends $e {
3502
3514
  return t = Mn(t, l, r), t.setHours(0, 0, 0, 0), t;
3503
3515
  }
3504
3516
  }
3505
- function Di(e, a) {
3517
+ function Ti(e, a) {
3506
3518
  const t = pe(e), n = Ks(t), l = a - n;
3507
3519
  return ft(t, l);
3508
3520
  }
3509
- class Ti extends $e {
3521
+ class Di extends $e {
3510
3522
  constructor() {
3511
3523
  super(...arguments);
3512
3524
  de(this, "priority", 90);
@@ -3593,7 +3605,7 @@ class Ti extends $e {
3593
3605
  return n >= 1 && n <= 7;
3594
3606
  }
3595
3607
  set(t, n, l) {
3596
- return t = Di(t, l), t.setHours(0, 0, 0, 0), t;
3608
+ return t = Ti(t, l), t.setHours(0, 0, 0, 0), t;
3597
3609
  }
3598
3610
  }
3599
3611
  class Pi extends $e {
@@ -3990,7 +4002,7 @@ const Fi = {
3990
4002
  E: new _i(),
3991
4003
  e: new ki(),
3992
4004
  c: new Mi(),
3993
- i: new Ti(),
4005
+ i: new Di(),
3994
4006
  a: new Pi(),
3995
4007
  b: new xi(),
3996
4008
  B: new $i(),
@@ -4015,7 +4027,7 @@ function pn(e, a, t, n) {
4015
4027
  firstWeekContainsDate: o,
4016
4028
  weekStartsOn: s,
4017
4029
  locale: r
4018
- }, b = [new ni()], y = a.match(Hi).map((k) => {
4030
+ }, b = [new ni()], g = a.match(Hi).map((k) => {
4019
4031
  const Y = k[0];
4020
4032
  if (Y in mn) {
4021
4033
  const ee = mn[Y];
@@ -4023,7 +4035,7 @@ function pn(e, a, t, n) {
4023
4035
  }
4024
4036
  return k;
4025
4037
  }).join("").match(Vi), u = [];
4026
- for (let k of y) {
4038
+ for (let k of g) {
4027
4039
  !(n != null && n.useAdditionalWeekYearTokens) && _l(k) && vn(k, a, e), !(n != null && n.useAdditionalDayOfYearTokens) && wl(k) && vn(k, a, e);
4028
4040
  const Y = k[0], ee = Fi[Y];
4029
4041
  if (ee) {
@@ -4063,18 +4075,18 @@ function pn(e, a, t, n) {
4063
4075
  }
4064
4076
  if (e.length > 0 && ji.test(e))
4065
4077
  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(
4078
+ const h = b.map((k) => k.priority).sort((k, Y) => Y - k).filter((k, Y, ee) => ee.indexOf(k) === Y).map(
4067
4079
  (k) => b.filter((Y) => Y.priority === k).sort((Y, ee) => ee.subPriority - Y.subPriority)
4068
4080
  ).map((k) => k[0]);
4069
4081
  let f = pe(t);
4070
4082
  if (isNaN(f.getTime()))
4071
4083
  return xe(t, NaN);
4072
- const D = {};
4073
- for (const k of g) {
4084
+ const T = {};
4085
+ for (const k of h) {
4074
4086
  if (!k.validate(f, m))
4075
4087
  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;
4088
+ const Y = k.set(f, T, m);
4089
+ Array.isArray(Y) ? (f = Y[0], Object.assign(T, Y[1])) : f = Y;
4078
4090
  }
4079
4091
  return xe(t, f);
4080
4092
  }
@@ -4102,7 +4114,7 @@ function xl(e, a) {
4102
4114
  const t = pe(e);
4103
4115
  return t.setHours(a), t;
4104
4116
  }
4105
- function Dn(e, a) {
4117
+ function Tn(e, a) {
4106
4118
  const t = pe(e);
4107
4119
  return t.setMilliseconds(a), t;
4108
4120
  }
@@ -4110,7 +4122,7 @@ function $l(e, a) {
4110
4122
  const t = pe(e);
4111
4123
  return t.setMinutes(a), t;
4112
4124
  }
4113
- function Tn(e, a) {
4125
+ function Dn(e, a) {
4114
4126
  const t = pe(e);
4115
4127
  return t.setSeconds(a), t;
4116
4128
  }
@@ -4130,8 +4142,8 @@ function Qi(e, a) {
4130
4142
  hours: o = 0,
4131
4143
  minutes: s = 0,
4132
4144
  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);
4145
+ } = a, b = ra(e, n + t * 12), g = Gi(b, r + l * 7), u = s + o * 60, f = (m + u * 60) * 1e3;
4146
+ return xe(e, g.getTime() - f);
4135
4147
  }
4136
4148
  function Cl(e, a) {
4137
4149
  return yn(e, -a);
@@ -4311,7 +4323,7 @@ function Xn(e) {
4311
4323
  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
4324
  }
4313
4325
  function Ki(e) {
4314
- return (a) => Tt(/* @__PURE__ */ new Date(`2017-01-0${a}T00:00:00+00:00`), "EEEEEE", { locale: e });
4326
+ return (a) => Dt(/* @__PURE__ */ new Date(`2017-01-0${a}T00:00:00+00:00`), "EEEEEE", { locale: e });
4315
4327
  }
4316
4328
  const eu = (e, a, t) => {
4317
4329
  const n = [1, 2, 3, 4, 5, 6, 7];
@@ -4340,7 +4352,7 @@ const eu = (e, a, t) => {
4340
4352
  try {
4341
4353
  const r = t === "long" ? "MMMM" : "MMM";
4342
4354
  return n.map((o, s) => {
4343
- const m = Tt(Pt(o, "UTC"), r, { locale: e });
4355
+ const m = Dt(Pt(o, "UTC"), r, { locale: e });
4344
4356
  return {
4345
4357
  text: m.charAt(0).toUpperCase() + m.substring(1),
4346
4358
  value: s
@@ -4413,7 +4425,7 @@ function ru(e, a) {
4413
4425
  if (n >= 0 && (a ? n - 1 >= 0 : n + 1 <= t.length))
4414
4426
  return t[n + (a ? -1 : 1)];
4415
4427
  }
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) => {
4428
+ 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
4429
  if (e.key === Be.enter || e.key === Be.space)
4418
4430
  return t && e.preventDefault(), a();
4419
4431
  }, Kn = (e, a, t, n, l, r) => {
@@ -4452,11 +4464,11 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4452
4464
  return new Date(n).toISOString();
4453
4465
  }, ct = (e) => {
4454
4466
  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;
4467
+ return a = xl(a, 0), a = $l(a, 0), a = Dn(a, 0), a = Tn(a, 0), a;
4456
4468
  }, Bt = (e, a, t, n) => {
4457
4469
  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) => {
4470
+ 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);
4471
+ }, 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
4472
  const a = Se(new Date(e), { date: 1 });
4461
4473
  return ct(a);
4462
4474
  }, tn = (e, a, t) => a && (t || t === 0) ? Object.fromEntries(
@@ -4509,11 +4521,11 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4509
4521
  return !1;
4510
4522
  const r = l ? yt(e, 1) : ra(e, 1), o = [Me(r), we(r)];
4511
4523
  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) => {
4524
+ }, 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
4525
  if (typeof a == "function" && !o)
4514
4526
  return a(e);
4515
4527
  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);
4528
+ 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
4529
  }, Jt = (e) => {
4518
4530
  if (e)
4519
4531
  return null;
@@ -4574,13 +4586,13 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4574
4586
  Ye.actionRow
4575
4587
  ].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
4588
  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);
4589
+ let h = null;
4590
+ e.value[He.value] && (h = e.value[He.value][Ke.value]), !h && e.value[He.value + (u ? 1 : -1)] ? (He.value = He.value + (u ? 1 : -1), Ke.value = u ? 0 : e.value[He.value].length - 1) : h || (Ke.value = u ? Ke.value - 1 : Ke.value + 1);
4579
4591
  }, t = (u) => {
4580
4592
  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
4593
  }, 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;
4594
+ let h = null;
4595
+ e.value[He.value] && (h = e.value[He.value][Ke.value]), h ? h.focus({ preventScroll: !Aa.value }) : Ke.value = u ? Ke.value - 1 : Ke.value + 1;
4584
4596
  }, l = () => {
4585
4597
  a(!0), n(!0);
4586
4598
  }, r = () => {
@@ -4589,11 +4601,11 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4589
4601
  t(!1), n(!0);
4590
4602
  }, s = () => {
4591
4603
  t(!0), n(!0);
4592
- }, m = (u, g) => {
4593
- Ye[g] = u;
4594
- }, b = (u, g) => {
4595
- Ye[g] = u;
4596
- }, y = () => {
4604
+ }, m = (u, h) => {
4605
+ Ye[h] = u;
4606
+ }, b = (u, h) => {
4607
+ Ye[h] = u;
4608
+ }, g = () => {
4597
4609
  Ke.value = 0, He.value = 0;
4598
4610
  };
4599
4611
  return {
@@ -4603,23 +4615,23 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4603
4615
  rn.value = u;
4604
4616
  },
4605
4617
  setSelectionGrid: (u) => {
4606
- Aa.value = u, y(), u || (Ye.selectionGrid = []);
4618
+ Aa.value = u, g(), u || (Ye.selectionGrid = []);
4607
4619
  },
4608
- setTimePicker: (u, g = !1) => {
4609
- on.value = u, un.value = g, y(), u || (Ye.timePicker[0] = [], Ye.timePicker[1] = []);
4620
+ setTimePicker: (u, h = !1) => {
4621
+ on.value = u, un.value = h, g(), u || (Ye.timePicker[0] = [], Ye.timePicker[1] = []);
4610
4622
  },
4611
- setTimePickerElements: (u, g = 0) => {
4612
- Ye.timePicker[g] = u;
4623
+ setTimePickerElements: (u, h = 0) => {
4624
+ Ye.timePicker[h] = u;
4613
4625
  },
4614
4626
  arrowRight: l,
4615
4627
  arrowLeft: r,
4616
4628
  arrowUp: o,
4617
4629
  arrowDown: s,
4618
4630
  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;
4631
+ 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
4632
  },
4621
4633
  setMonthPicker: (u) => {
4622
- sn.value = u, y();
4634
+ sn.value = u, g();
4623
4635
  },
4624
4636
  refSets: Ye
4625
4637
  // exposed for testing
@@ -4690,7 +4702,7 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4690
4702
  enabled: e,
4691
4703
  ...a
4692
4704
  };
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) => {
4705
+ }, 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
4706
  const a = {
4695
4707
  dates: Array.isArray(e) ? e.map((t) => q(t)) : [],
4696
4708
  years: [],
@@ -4701,7 +4713,7 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4701
4713
  options: { highlightDisabled: !1 }
4702
4714
  };
4703
4715
  return typeof e == "function" ? e : { ...a, ...e ?? {} };
4704
- }, Tu = (e) => typeof e == "object" ? {
4716
+ }, Du = (e) => typeof e == "object" ? {
4705
4717
  type: (e == null ? void 0 : e.type) ?? "local",
4706
4718
  hideOnOffsetDates: (e == null ? void 0 : e.hideOnOffsetDates) ?? !1
4707
4719
  } : {
@@ -4757,16 +4769,16 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4757
4769
  enabled: !!e,
4758
4770
  limit: e.limit ? +e.limit : null,
4759
4771
  dragSelect: e.dragSelect ?? !0
4760
- }, Ie = (e) => {
4772
+ }, Ne = (e) => {
4761
4773
  const a = () => {
4762
4774
  const x = e.enableSeconds ? ":ss" : "", S = e.enableMinutes ? ":mm" : "";
4763
4775
  return e.is24 ? `HH${S}${x}` : `hh${S}${x} aa`;
4764
4776
  }, t = () => {
4765
4777
  var x;
4766
4778
  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(
4779
+ }, 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
4780
  () => 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(
4781
+ ), 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
4782
  () => Cu(
4771
4783
  e.minDate,
4772
4784
  e.maxDate,
@@ -4796,11 +4808,11 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4796
4808
  defaultedStartTime: o,
4797
4809
  defaultedAriaLabels: s,
4798
4810
  defaultedFilters: m,
4799
- defaultedActionRow: y,
4811
+ defaultedActionRow: g,
4800
4812
  defaultedPreviewFormat: u,
4801
- defaultedTextInput: g,
4813
+ defaultedTextInput: h,
4802
4814
  defaultedInline: f,
4803
- defaultedConfig: D,
4815
+ defaultedConfig: T,
4804
4816
  defaultedHighlight: _,
4805
4817
  defaultedWeekNumbers: W,
4806
4818
  defaultedRange: R,
@@ -4811,128 +4823,128 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4811
4823
  getDefaultStartTime: l
4812
4824
  };
4813
4825
  }, 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");
4826
+ const n = U(), { defaultedTextInput: l, defaultedRange: r, defaultedTz: o, defaultedMultiDates: s, getDefaultPattern: m } = Ne(a), b = U(""), g = ba(a, "format"), u = ba(a, "formatLocale");
4815
4827
  lt(
4816
4828
  n,
4817
4829
  () => {
4818
4830
  typeof a.onInternalModelChange == "function" && e("internal-model-change", n.value, te(!0));
4819
4831
  },
4820
4832
  { deep: !0 }
4821
- ), lt(r, (h, ue) => {
4822
- h.enabled !== ue.enabled && (n.value = null);
4823
- }), lt(y, () => {
4833
+ ), lt(r, (y, ue) => {
4834
+ y.enabled !== ue.enabled && (n.value = null);
4835
+ }), lt(g, () => {
4824
4836
  Q();
4825
4837
  });
4826
- const g = (h) => o.value.timezone && o.value.convertModel ? Pt(h, o.value.timezone) : h, f = (h) => {
4838
+ const h = (y) => o.value.timezone && o.value.convertModel ? Pt(y, o.value.timezone) : y, f = (y) => {
4827
4839
  if (o.value.timezone && o.value.convertModel) {
4828
4840
  const ue = Ji(o.value.timezone);
4829
- return es(h, ue);
4841
+ return es(y, ue);
4830
4842
  }
4831
- return h;
4832
- }, D = (h, ue, ge = !1) => Vl(
4833
- h,
4843
+ return y;
4844
+ }, T = (y, ue, ge = !1) => Vl(
4845
+ y,
4834
4846
  a.format,
4835
4847
  a.formatLocale,
4836
4848
  l.value.rangeSeparator,
4837
4849
  a.modelAuto,
4838
4850
  ue ?? m(),
4839
4851
  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(
4852
+ ), _ = (y) => y ? a.modelType ? me(y) : {
4853
+ hours: Ct(y),
4854
+ minutes: Lt(y),
4855
+ seconds: a.enableSeconds ? na(y) : 0
4856
+ } : null, W = (y) => a.modelType ? me(y) : { month: Me(y), year: we(y) }, G = (y) => Array.isArray(y) ? s.value.enabled ? y.map((ue) => P(ue, Mt(q(), ue))) : Ca(
4845
4857
  () => [
4846
- Mt(q(), h[0]),
4847
- h[1] ? Mt(q(), h[1]) : Jt(r.value.partialRange)
4858
+ Mt(q(), y[0]),
4859
+ y[1] ? Mt(q(), y[1]) : Jt(r.value.partialRange)
4848
4860
  ],
4849
4861
  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) ? [
4862
+ ) : Mt(q(), +y), P = (y, ue) => (typeof y == "string" || typeof y == "number") && a.modelType ? re(y) : ue, O = (y) => Array.isArray(y) ? [
4851
4863
  P(
4852
- h[0],
4853
- Bt(null, +h[0].hours, +h[0].minutes, h[0].seconds)
4864
+ y[0],
4865
+ Bt(null, +y[0].hours, +y[0].minutes, y[0].seconds)
4854
4866
  ),
4855
4867
  P(
4856
- h[1],
4857
- Bt(null, +h[1].hours, +h[1].minutes, h[1].seconds)
4868
+ y[1],
4869
+ Bt(null, +y[1].hours, +y[1].minutes, y[1].seconds)
4858
4870
  )
4859
- ] : P(h, Bt(null, h.hours, h.minutes, h.seconds)), R = (h) => {
4871
+ ] : P(y, Bt(null, y.hours, y.minutes, y.seconds)), R = (y) => {
4860
4872
  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(
4873
+ return Array.isArray(y) ? s.value.enabled ? y.map((ge) => P(ge, $t(ue, +ge.month, +ge.year))) : Ca(
4862
4874
  () => [
4863
- P(h[0], $t(ue, +h[0].month, +h[0].year)),
4875
+ P(y[0], $t(ue, +y[0].month, +y[0].year)),
4864
4876
  P(
4865
- h[1],
4866
- h[1] ? $t(ue, +h[1].month, +h[1].year) : Jt(r.value.partialRange)
4877
+ y[1],
4878
+ y[1] ? $t(ue, +y[1].month, +y[1].year) : Jt(r.value.partialRange)
4867
4879
  )
4868
4880
  ],
4869
4881
  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));
4882
+ ) : P(y, $t(ue, +y.month, +y.year));
4883
+ }, x = (y) => {
4884
+ if (Array.isArray(y))
4885
+ return y.map((ue) => re(ue));
4874
4886
  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];
4887
+ }, S = (y) => {
4888
+ if (Array.isArray(y) && r.value.enabled) {
4889
+ const ue = y[0], ge = y[1];
4878
4890
  return [
4879
4891
  q(Array.isArray(ue) ? ue[0] : null),
4880
4892
  q(Array.isArray(ge) ? ge[0] : null)
4881
4893
  ];
4882
4894
  }
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])],
4895
+ return q(y[0]);
4896
+ }, k = (y) => a.modelAuto ? Array.isArray(y) ? [re(y[0]), re(y[1])] : a.autoApply ? [re(y)] : [re(y), null] : Array.isArray(y) ? Ca(
4897
+ () => y[1] ? [
4898
+ re(y[0]),
4899
+ y[1] ? re(y[1]) : Jt(r.value.partialRange)
4900
+ ] : [re(y[0])],
4889
4901
  r.value.enabled
4890
- ) : re(h), Y = () => {
4902
+ ) : re(y), Y = () => {
4891
4903
  Array.isArray(n.value) && r.value.enabled && n.value.length === 1 && n.value.push(Jt(r.value.partialRange));
4892
4904
  }, ee = () => {
4893
- const h = n.value;
4905
+ const y = n.value;
4894
4906
  return [
4895
- me(h[0]),
4896
- h[1] ? me(h[1]) : Jt(r.value.partialRange)
4907
+ me(y[0]),
4908
+ y[1] ? me(y[1]) : Jt(r.value.partialRange)
4897
4909
  ];
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);
4910
+ }, oe = () => n.value[1] ? ee() : me(Ge(n.value[0])), fe = () => (n.value || []).map((y) => me(y)), I = (y = !1) => (y || Y(), a.modelAuto ? oe() : s.value.enabled ? fe() : Array.isArray(n.value) ? Ca(() => ee(), r.value.enabled) : me(Ge(n.value))), V = (y) => !y || Array.isArray(y) && !y.length ? null : a.timePicker ? 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) => {
4911
+ const ue = V(y);
4900
4912
  hn(Ge(ue)) ? (n.value = Ge(ue), Q()) : (n.value = null, b.value = "");
4901
4913
  }, 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 = () => {
4914
+ const y = (ue) => Dt(ue, l.value.format);
4915
+ return `${y(n.value[0])} ${l.value.rangeSeparator} ${n.value[1] ? y(n.value[1]) : ""}`;
4916
+ }, w = () => t.value && n.value ? Array.isArray(n.value) ? v() : Dt(n.value, l.value.format) : T(n.value), $ = () => 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
4917
  !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) => {
4918
+ }, re = (y) => {
4907
4919
  if (a.utc) {
4908
- const ue = new Date(h);
4920
+ const ue = new Date(y);
4909
4921
  return a.utc === "preserve" ? new Date(ue.getTime() + ue.getTimezoneOffset() * 6e4) : ue;
4910
4922
  }
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) => {
4923
+ return a.modelType ? Zi.includes(a.modelType) ? h(new Date(y)) : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? h(
4924
+ pn(y, m(), /* @__PURE__ */ new Date(), { locale: u.value })
4925
+ ) : h(
4926
+ pn(y, a.modelType, /* @__PURE__ */ new Date(), { locale: u.value })
4927
+ ) : h(new Date(y));
4928
+ }, me = (y) => y ? a.utc ? 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
4929
  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);
4930
+ return y;
4931
+ if (e("update:model-value", y), o.value.emitTimezone && ue) {
4932
+ const K = Array.isArray(y) ? y.map((Z) => Pt(Ge(Z), o.value.emitTimezone)) : Pt(Ge(y), o.value.emitTimezone);
4921
4933
  e("update:model-timezone-value", K);
4922
4934
  }
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 = () => {
4935
+ }, L = (y) => Array.isArray(n.value) ? s.value.enabled ? n.value.map((ue) => y(ue)) : [
4936
+ y(n.value[0]),
4937
+ n.value[1] ? y(n.value[1]) : Jt(r.value.partialRange)
4938
+ ] : y(Ge(n.value)), i = () => {
4927
4939
  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))];
4940
+ const y = xt(n.value[0], a.weekStart), ue = n.value[1] ? xt(n.value[1], a.weekStart) : [];
4941
+ return [y.map((ge) => q(ge)), ue.map((ge) => q(ge))];
4930
4942
  }
4931
- return xt(n.value, a.weekStart).map((h) => q(h));
4932
- }, E = (h, ue) => B(Ge(L(h)), !1, ue), le = (h) => {
4943
+ return xt(n.value, a.weekStart).map((y) => q(y));
4944
+ }, E = (y, ue) => B(Ge(L(y)), !1, ue), le = (y) => {
4933
4945
  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));
4946
+ return y ? ue : e("update:model-value", i());
4947
+ }, te = (y = !1) => (y || Q(), a.monthPicker ? E(W, y) : a.timePicker ? E(_, y) : a.yearPicker ? E(we, y) : a.weekPicker ? le(y) : B(I(y), !0, y));
4936
4948
  return {
4937
4949
  inputValue: b,
4938
4950
  internalModelValue: n,
@@ -4942,26 +4954,26 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4942
4954
  emitModelValue: te
4943
4955
  };
4944
4956
  }, 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);
4957
+ const { defaultedFilters: t, propDates: n } = Ne(e), { validateMonthYearInRange: l } = Ft(e), r = (g, u) => {
4958
+ let h = g;
4959
+ return t.value.months.includes(Me(h)) ? (h = u ? yt(g, 1) : ra(g, 1), r(h, u)) : h;
4960
+ }, o = (g, u) => {
4961
+ let h = g;
4962
+ return t.value.years.includes(we(h)) ? (h = u ? yn(g, 1) : Cl(g, 1), o(h, u)) : h;
4963
+ }, s = (g, u = !1) => {
4964
+ const h = Se(q(), { month: e.month, year: e.year });
4965
+ let f = g ? yt(h, 1) : ra(h, 1);
4954
4966
  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(
4967
+ let T = Me(f), _ = we(f);
4968
+ t.value.months.includes(T) && (f = r(f, g), T = Me(f), _ = we(f)), t.value.years.includes(_) && (f = o(f, g), _ = we(f)), l(T, _, g, e.preventMinMaxNavigation) && m(T, _, u);
4969
+ }, m = (g, u, h) => {
4970
+ a("update-month-year", { month: g, year: u, fromNav: h });
4971
+ }, b = H(() => (g) => Fl(
4960
4972
  Se(q(), { month: e.month, year: e.year }),
4961
4973
  n.value.maxDate,
4962
4974
  n.value.minDate,
4963
4975
  e.preventMinMaxNavigation,
4964
- y
4976
+ g
4965
4977
  ));
4966
4978
  return { handleMonthYearChange: s, isDisabled: b, updateMonthYear: m };
4967
4979
  };
@@ -4976,12 +4988,12 @@ const Su = ({
4976
4988
  props: o,
4977
4989
  slots: s
4978
4990
  }) => {
4979
- const m = U({}), b = U(!1), y = U({
4991
+ const m = U({}), b = U(!1), g = U({
4980
4992
  top: "0",
4981
4993
  left: "0"
4982
- }), u = U(!1), g = ba(o, "teleportCenter");
4983
- lt(g, () => {
4984
- y.value = JSON.parse(JSON.stringify({})), R();
4994
+ }), u = U(!1), h = ba(o, "teleportCenter");
4995
+ lt(h, () => {
4996
+ g.value = JSON.parse(JSON.stringify({})), R();
4985
4997
  });
4986
4998
  const f = (v) => {
4987
4999
  if (o.teleport) {
@@ -4992,24 +5004,24 @@ const Su = ({
4992
5004
  };
4993
5005
  }
4994
5006
  return { top: 0, left: 0 };
4995
- }, D = (v, w) => {
4996
- y.value.left = `${v + w - m.value.width}px`;
5007
+ }, T = (v, w) => {
5008
+ g.value.left = `${v + w - m.value.width}px`;
4997
5009
  }, _ = (v) => {
4998
- y.value.left = `${v}px`;
5010
+ g.value.left = `${v}px`;
4999
5011
  }, 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`);
5012
+ o.position === Kt.left && _(v), o.position === Kt.right && T(v, w), o.position === Kt.center && (g.value.left = `${v + w / 2 - m.value.width / 2}px`);
5001
5013
  }, G = (v) => {
5002
5014
  const { width: w, height: $ } = v.getBoundingClientRect(), { top: Q, left: re } = o.altPosition ? o.altPosition(v) : f(v);
5003
5015
  return { top: +Q, left: +re, width: w, height: $ };
5004
5016
  }, P = () => {
5005
- y.value.left = "50%", y.value.top = "50%", y.value.transform = "translate(-50%, -50%)", y.value.position = "fixed", delete y.value.opacity;
5017
+ g.value.left = "50%", g.value.top = "50%", g.value.transform = "translate(-50%, -50%)", g.value.position = "fixed", delete g.value.opacity;
5006
5018
  }, O = () => {
5007
5019
  const v = Ue(t), { top: w, left: $, transform: Q } = o.altPosition(v);
5008
- y.value = { top: `${w}px`, left: `${$}px`, transform: Q ?? "" };
5020
+ g.value = { top: `${w}px`, left: `${$}px`, transform: Q ?? "" };
5009
5021
  }, R = (v = !0) => {
5010
5022
  var w;
5011
5023
  if (!l.value.enabled) {
5012
- if (g.value)
5024
+ if (h.value)
5013
5025
  return P();
5014
5026
  if (o.altPosition !== null)
5015
5027
  return O();
@@ -5023,10 +5035,10 @@ const Su = ({
5023
5035
  window.screen.width > 768 && !b.value && W(w, $), Y(v);
5024
5036
  }, S = (v) => {
5025
5037
  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 });
5038
+ 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
5039
  }, k = (v) => {
5028
5040
  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 });
5041
+ g.value.top = `${w - +o.offset - m.value.height}px`, u.value = !0, x({ inputEl: v, left: $, width: Q });
5030
5042
  }, Y = (v) => {
5031
5043
  if (o.autoPosition) {
5032
5044
  const { left: w, width: $ } = G(v), { left: Q, right: re } = m.value;
@@ -5035,7 +5047,7 @@ const Su = ({
5035
5047
  if (Q <= 0)
5036
5048
  return b.value = !0, _(w);
5037
5049
  if (re >= document.documentElement.clientWidth)
5038
- return b.value = !0, D(w, $);
5050
+ return b.value = !0, T(w, $);
5039
5051
  }
5040
5052
  return W(w, $);
5041
5053
  }
@@ -5073,7 +5085,7 @@ const Su = ({
5073
5085
  };
5074
5086
  return {
5075
5087
  openOnTop: u,
5076
- menuStyle: y,
5088
+ menuStyle: g,
5077
5089
  xCorrect: b,
5078
5090
  setMenuPosition: R,
5079
5091
  getScrollableParent: V,
@@ -5156,14 +5168,14 @@ const Su = ({
5156
5168
  }, Ma = (e) => {
5157
5169
  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
5170
  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 = {
5171
+ }, Ta = (e, a) => {
5172
+ const { defaultedRange: t, defaultedTz: n } = Ne(e), l = q(Pt(q(), n.value.timezone)), r = U([{ month: Me(l), year: we(l) }]), o = (u) => {
5173
+ const h = {
5162
5174
  hours: Ct(l),
5163
5175
  minutes: Lt(l),
5164
5176
  seconds: 0
5165
5177
  };
5166
- return t.value.enabled ? [g[u], g[u]] : g[u];
5178
+ return t.value.enabled ? [h[u], h[u]] : h[u];
5167
5179
  }, s = ka({
5168
5180
  hours: o("hours"),
5169
5181
  minutes: o("minutes"),
@@ -5171,8 +5183,8 @@ const Su = ({
5171
5183
  });
5172
5184
  lt(
5173
5185
  t,
5174
- (u, g) => {
5175
- u.enabled !== g.enabled && (s.hours = o("hours"), s.minutes = o("minutes"), s.seconds = o("seconds"));
5186
+ (u, h) => {
5187
+ u.enabled !== h.enabled && (s.hours = o("hours"), s.minutes = o("minutes"), s.seconds = o("seconds"));
5176
5188
  },
5177
5189
  { deep: !0 }
5178
5190
  );
@@ -5183,7 +5195,7 @@ const Su = ({
5183
5195
  }
5184
5196
  }), b = H(
5185
5197
  () => (u) => r.value[u] ? r.value[u].month : 0
5186
- ), y = H(
5198
+ ), g = H(
5187
5199
  () => (u) => r.value[u] ? r.value[u].year : 0
5188
5200
  );
5189
5201
  return {
@@ -5191,33 +5203,33 @@ const Su = ({
5191
5203
  time: s,
5192
5204
  modelValue: m,
5193
5205
  month: b,
5194
- year: y,
5206
+ year: g,
5195
5207
  today: l
5196
5208
  };
5197
5209
  }, 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) => {
5210
+ const { defaultedMultiCalendars: t, defaultedMultiDates: n, defaultedHighlight: l, defaultedTz: r, propDates: o, defaultedRange: s } = Ne(a), { isDisabled: m } = Ft(a), b = U(null), g = U(Pt(/* @__PURE__ */ new Date(), r.value.timezone)), u = (i) => {
5199
5211
  !i.current && a.hideOffsetDates || (b.value = i.value);
5200
- }, g = () => {
5212
+ }, h = () => {
5201
5213
  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) => {
5214
+ }, f = (i) => Array.isArray(e.value) && s.value.enabled && e.value[0] && b.value ? i ? We(b.value, e.value[0]) : Fe(b.value, e.value[0]) : !0, T = (i, E) => {
5203
5215
  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);
5216
+ return Te(q(i.value), te);
5205
5217
  }, _ = (i) => {
5206
5218
  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) => {
5219
+ return i ? !Fe(b.value ?? null, E) : !0;
5220
+ }, W = (i, E = !0) => (s.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !i.current ? !1 : Te(q(i.value), e.value[E ? 0 : 1]) : s.value.enabled ? T(i, E) && _(E) || Te(i.value, Array.isArray(e.value) ? e.value[0] : null) && f(E) : !1, G = (i, E) => {
5209
5221
  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;
5222
+ const le = Te(i.value, b.value);
5223
+ return E ? We(e.value[0], i.value) && le : Fe(e.value[0], i.value) && le;
5212
5224
  }
5213
5225
  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) => {
5226
+ }, 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
5227
  if (s.value.autoRange || a.weekPicker) {
5216
5228
  if (b.value) {
5217
5229
  if (a.hideOffsetDates && !i.current)
5218
5230
  return !1;
5219
5231
  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));
5232
+ return a.weekPicker ? Te(le[1], q(i.value)) : Te(E, q(i.value));
5221
5233
  }
5222
5234
  return !1;
5223
5235
  }
@@ -5229,7 +5241,7 @@ const Su = ({
5229
5241
  if (a.hideOffsetDates && !i.current)
5230
5242
  return !1;
5231
5243
  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);
5244
+ return a.weekPicker ? We(i.value, le[0]) && Fe(i.value, le[1]) : We(i.value, b.value) && Fe(i.value, E);
5233
5245
  }
5234
5246
  return !1;
5235
5247
  }
@@ -5240,7 +5252,7 @@ const Su = ({
5240
5252
  if (a.hideOffsetDates && !i.current)
5241
5253
  return !1;
5242
5254
  const E = xt(q(b.value), a.weekStart);
5243
- return a.weekPicker ? De(E[0], i.value) : De(b.value, i.value);
5255
+ return a.weekPicker ? Te(E[0], i.value) : Te(b.value, i.value);
5244
5256
  }
5245
5257
  return !1;
5246
5258
  }
@@ -5264,9 +5276,9 @@ const Su = ({
5264
5276
  dp__cell_disabled: m(i.value),
5265
5277
  dp__cell_highlight: !I(i) && (fe(i) || V(i)) && !oe(i) && !te && !x(i) && !(se(i) && a.weekPicker) && !le,
5266
5278
  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)
5279
+ dp__today: !a.noToday && Te(i.value, g.value) && i.current,
5280
+ "dp--past": Fe(i.value, g.value),
5281
+ "dp--future": We(i.value, g.value)
5270
5282
  };
5271
5283
  }, w = (i) => ({
5272
5284
  dp__active_date: oe(i),
@@ -5276,9 +5288,9 @@ const Su = ({
5276
5288
  const E = xt(e.value, a.weekStart);
5277
5289
  return {
5278
5290
  ...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])
5291
+ dp__range_start: Te(E[0], i.value),
5292
+ dp__range_end: Te(E[1], i.value),
5293
+ dp__range_between_week: We(i.value, E[0]) && Fe(i.value, E[1])
5282
5294
  };
5283
5295
  }
5284
5296
  return {
@@ -5289,10 +5301,10 @@ const Su = ({
5289
5301
  const E = xt(e.value[0], a.weekStart), le = e.value[1] ? xt(e.value[1], a.weekStart) : [];
5290
5302
  return {
5291
5303
  ...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])
5304
+ dp__range_start: Te(E[0], i.value) || Te(le[0], i.value),
5305
+ dp__range_end: Te(E[1], i.value) || Te(le[1], i.value),
5306
+ dp__range_between_week: We(i.value, E[0]) && Fe(i.value, E[1]) || We(i.value, le[0]) && Fe(i.value, le[1]),
5307
+ dp__range_between: We(i.value, E[1]) && Fe(i.value, le[0])
5296
5308
  };
5297
5309
  }
5298
5310
  return {
@@ -5307,7 +5319,7 @@ const Su = ({
5307
5319
  dp__range_start: E,
5308
5320
  dp__range_end: le,
5309
5321
  dp__range_between: se(i),
5310
- dp__date_hover: De(i.value, b.value) && !E && !le && !a.weekPicker,
5322
+ dp__date_hover: Te(i.value, b.value) && !E && !le && !a.weekPicker,
5311
5323
  dp__date_hover_start: G(i, !0),
5312
5324
  dp__date_hover_end: G(i, !1)
5313
5325
  };
@@ -5319,7 +5331,7 @@ const Su = ({
5319
5331
  }), L = (i) => s.value.enabled ? s.value.autoRange ? B(i) : a.modelAuto ? { ...w(i), ...me(i) } : a.weekPicker ? Q(i) : me(i) : a.weekPicker ? $(i) : w(i);
5320
5332
  return {
5321
5333
  setHoverDate: u,
5322
- clearHoverDate: g,
5334
+ clearHoverDate: h,
5323
5335
  getDayClassData: (i) => a.hideOffsetDates && !i.current ? {} : {
5324
5336
  ...v(i),
5325
5337
  ...L(i),
@@ -5328,24 +5340,24 @@ const Su = ({
5328
5340
  }
5329
5341
  };
5330
5342
  }, 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];
5343
+ const { defaultedFilters: a, defaultedRange: t, propDates: n, defaultedMultiDates: l } = Ne(e), r = (I) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(q(I)) : !!Ea(I, n.value.disabledDates) : !1, o = (I) => {
5344
+ const V = n.value.maxDate ? We(I, n.value.maxDate) : !1, se = n.value.minDate ? Fe(I, n.value.minDate) : !1, v = r(I), w = a.value.months.map((B) => +B).includes(Me(I)), $ = 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
5345
  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) => {
5346
+ }, s = (I, V) => Fe(...Et(n.value.minDate, I, V)) || Te(...Et(n.value.minDate, I, V)), m = (I, V) => We(...Et(n.value.maxDate, I, V)) || Te(...Et(n.value.maxDate, I, V)), b = (I, V, se) => {
5335
5347
  let v = !1;
5336
5348
  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) => {
5349
+ }, g = (I, V, se, v) => {
5338
5350
  let w = !1;
5339
5351
  return v ? n.value.minDate && n.value.maxDate ? w = b(I, V, se) : (n.value.minDate && s(I, V) || n.value.maxDate && m(I, V)) && (w = !0) : w = !0, w;
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) => {
5352
+ }, u = (I) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !Ea(I, n.value.allowedDates) : !1, h = (I) => !o(I), f = (I) => t.value.noDisabledRange ? !fl({ start: I[0], end: I[1] }).some((V) => h(V)) : !0, T = (I) => {
5341
5353
  if (I) {
5342
5354
  const V = we(I);
5343
5355
  return V >= +e.yearRange[0] && V <= e.yearRange[1];
5344
5356
  }
5345
5357
  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 : $);
5358
+ }, _ = (I, V) => !!(Array.isArray(I) && I[V] && (t.value.maxRange || t.value.minRange) && T(I[V])), W = (I, V, se = 0) => {
5359
+ if (_(V, se) && T(I)) {
5360
+ const v = vl(I, V[se]), w = Il(V[se], I), $ = w.length === 1 ? 0 : w.filter((re) => h(re)).length, Q = Math.abs(v) - (t.value.minMaxRawRange ? 0 : $);
5349
5361
  if (t.value.minRange && t.value.maxRange)
5350
5362
  return Q >= +t.value.minRange && Q <= +t.value.maxRange;
5351
5363
  if (t.value.minRange)
@@ -5390,22 +5402,22 @@ const Su = ({
5390
5402
  const se = q(ht(I));
5391
5403
  if (n.value.minDate && n.value.maxDate) {
5392
5404
  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);
5405
+ return We(se, v) && Fe(se, w) || Te(se, v) || Te(se, w);
5394
5406
  }
5395
5407
  if (n.value.minDate) {
5396
5408
  const v = q(ht(n.value.minDate));
5397
- V = We(se, v) || De(se, v);
5409
+ V = We(se, v) || Te(se, v);
5398
5410
  }
5399
5411
  if (n.value.maxDate) {
5400
5412
  const v = q(ht(n.value.maxDate));
5401
- V = Ne(se, v) || De(se, v);
5413
+ V = Fe(se, v) || Te(se, v);
5402
5414
  }
5403
5415
  return V;
5404
5416
  }, 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
5417
  return {
5406
- isDisabled: g,
5418
+ isDisabled: h,
5407
5419
  validateDate: o,
5408
- validateMonthYearInRange: y,
5420
+ validateMonthYearInRange: g,
5409
5421
  isDateRangeAllowed: f,
5410
5422
  checkMinMaxRange: W,
5411
5423
  isValidTime: Y,
@@ -5421,21 +5433,21 @@ const Su = ({
5421
5433
  [Ut.calendar]: !1,
5422
5434
  [Ut.header]: !1
5423
5435
  }), r = H(() => e.monthPicker || e.timePicker), o = (u) => {
5424
- var g;
5425
- if ((g = e.flow) != null && g.length) {
5436
+ var h;
5437
+ if ((h = e.flow) != null && h.length) {
5426
5438
  if (!u && r.value)
5427
- return y();
5428
- l[u] = !0, Object.keys(l).filter((f) => !l[f]).length || y();
5439
+ return g();
5440
+ l[u] = !0, Object.keys(l).filter((f) => !l[f]).length || g();
5429
5441
  }
5430
5442
  }, s = () => {
5431
5443
  var u;
5432
- (u = e.flow) != null && u.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), y());
5444
+ (u = e.flow) != null && u.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), g());
5433
5445
  }, m = () => {
5434
5446
  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 = () => {
5447
+ }, b = (u, h, ...f) => {
5448
+ var T, _;
5449
+ e.flow[n.value] === u && t.value && ((_ = (T = t.value)[h]) == null || _.call(T, ...f));
5450
+ }, g = () => {
5439
5451
  b(et.month, "toggleMonthPicker", !0), b(et.year, "toggleYearPicker", !0), b(et.calendar, "toggleTimePicker", !1, !0), b(et.time, "toggleTimePicker", !0, !0);
5440
5452
  const u = e.flow[n.value];
5441
5453
  (u === et.hours || u === et.minutes || u === et.seconds) && b(u, "toggleTimePicker", !0, !0, u);
@@ -5589,7 +5601,7 @@ const Su = ({
5589
5601
  }, Nu = ["id", "name", "inputmode", "placeholder", "disabled", "readonly", "required", "value", "autocomplete", "aria-label", "aria-disabled", "aria-invalid"], Fu = {
5590
5602
  key: 2,
5591
5603
  class: "dp__clear_icon"
5592
- }, Vu = /* @__PURE__ */ Te({
5604
+ }, Vu = /* @__PURE__ */ De({
5593
5605
  compatConfig: {
5594
5606
  MODE: 3
5595
5607
  },
@@ -5620,10 +5632,10 @@ const Su = ({
5620
5632
  defaultedInline: s,
5621
5633
  defaultedConfig: m,
5622
5634
  defaultedRange: b,
5623
- defaultedMultiDates: y,
5635
+ defaultedMultiDates: g,
5624
5636
  getDefaultPattern: u,
5625
- getDefaultStartTime: g
5626
- } = Ie(l), { checkMinMaxRange: f } = Ft(l), D = U(), _ = U(null), W = U(!1), G = U(!1), P = H(
5637
+ getDefaultStartTime: h
5638
+ } = Ne(l), { checkMinMaxRange: f } = Ft(l), T = U(), _ = U(null), W = U(!1), G = U(!1), P = H(
5627
5639
  () => ({
5628
5640
  dp__pointer: !l.disabled && !l.readonly && !r.value.enabled,
5629
5641
  dp__disabled: l.disabled,
@@ -5637,9 +5649,9 @@ const Su = ({
5637
5649
  [l.inputClassName]: !!l.inputClassName
5638
5650
  })
5639
5651
  ), O = () => {
5640
- n("set-input-date", null), l.clearable && l.autoApply && (n("set-empty-date"), D.value = null);
5652
+ n("set-input-date", null), l.clearable && l.autoApply && (n("set-empty-date"), T.value = null);
5641
5653
  }, R = (w) => {
5642
- const $ = g();
5654
+ const $ = h();
5643
5655
  return iu(
5644
5656
  w,
5645
5657
  r.value.format ?? u(),
@@ -5655,26 +5667,26 @@ const Su = ({
5655
5667
  if (la(me, B))
5656
5668
  return;
5657
5669
  const L = me && B ? [me, B] : [me];
5658
- f(B, L, 0) && (D.value = me ? L : null);
5670
+ f(B, L, 0) && (T.value = me ? L : null);
5659
5671
  }
5660
5672
  }, S = () => {
5661
5673
  G.value = !0;
5662
5674
  }, k = (w) => {
5663
5675
  if (b.value.enabled)
5664
5676
  x(w);
5665
- else if (y.value.enabled) {
5677
+ else if (g.value.enabled) {
5666
5678
  const $ = w.split(";");
5667
- D.value = $.map((Q) => R(Q.trim())).filter((Q) => Q);
5679
+ T.value = $.map((Q) => R(Q.trim())).filter((Q) => Q);
5668
5680
  } else
5669
- D.value = R(w);
5681
+ T.value = R(w);
5670
5682
  }, Y = (w) => {
5671
5683
  var $;
5672
5684
  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);
5685
+ 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
5686
  }, 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);
5687
+ r.value.enabled ? (k(w.target.value), r.value.enterSubmit && hn(T.value) && l.inputValue !== "" ? (n("set-input-date", T.value, !0), T.value = null) : r.value.enterSubmit && l.inputValue === "" && (T.value = null, n("clear"))) : I(w);
5676
5688
  }, 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));
5689
+ r.value.enabled && r.value.tabSubmit && k(w.target.value), r.value.tabSubmit && hn(T.value) && l.inputValue !== "" ? (n("set-input-date", T.value, !0, !0), T.value = null) : r.value.tabSubmit && l.inputValue === "" && (T.value = null, n("clear", !0));
5678
5690
  }, fe = () => {
5679
5691
  W.value = !0, n("focus"), mt().then(() => {
5680
5692
  var w;
@@ -5683,7 +5695,7 @@ const Su = ({
5683
5695
  }, I = (w) => {
5684
5696
  w.preventDefault(), Yt(w, m.value, !0), r.value.enabled && r.value.openMenu && !s.value.input && !l.isMenuOpen ? n("open") : r.value.enabled || n("toggle");
5685
5697
  }, 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);
5698
+ n("real-blur"), W.value = !1, (!l.isMenuOpen || s.value.enabled && s.value.input) && n("blur"), l.autoApply && r.value.enabled && T.value && !l.isMenuOpen && (n("set-input-date", T.value), n("select-date"), T.value = null);
5687
5699
  }, se = (w) => {
5688
5700
  Yt(w, m.value, !0), n("clear");
5689
5701
  }, v = (w) => {
@@ -5699,7 +5711,7 @@ const Su = ({
5699
5711
  (w = _.value) == null || w.focus({ preventScroll: !0 });
5700
5712
  },
5701
5713
  setParsedDate: (w) => {
5702
- D.value = w;
5714
+ T.value = w;
5703
5715
  }
5704
5716
  }), (w, $) => {
5705
5717
  var Q;
@@ -5769,13 +5781,13 @@ const Su = ({
5769
5781
  key: 3,
5770
5782
  class: "dp__clear_icon dp__input_icons",
5771
5783
  "data-test": "clear-icon",
5772
- onClick: $[3] || ($[3] = Dt((re) => se(re), ["prevent"]))
5784
+ onClick: $[3] || ($[3] = Tt((re) => se(re), ["prevent"]))
5773
5785
  })) : N("", !0)
5774
5786
  ])) : N("", !0)
5775
5787
  ]);
5776
5788
  };
5777
5789
  }
5778
- }), Hu = ["title"], Wu = ["disabled"], zu = /* @__PURE__ */ Te({
5790
+ }), Hu = ["title"], Wu = ["disabled"], zu = /* @__PURE__ */ De({
5779
5791
  compatConfig: {
5780
5792
  MODE: 3
5781
5793
  },
@@ -5794,11 +5806,11 @@ const Su = ({
5794
5806
  defaultedTextInput: s,
5795
5807
  defaultedInline: m,
5796
5808
  defaultedRange: b,
5797
- defaultedMultiDates: y,
5809
+ defaultedMultiDates: g,
5798
5810
  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);
5811
+ } = 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
5812
  qe(() => {
5801
- n.arrowNavigation && D([Ue(_), Ue(W)], "actionRow"), x(), window.addEventListener("resize", x);
5813
+ n.arrowNavigation && T([Ue(_), Ue(W)], "actionRow"), x(), window.addEventListener("resize", x);
5802
5814
  }), Ba(() => {
5803
5815
  window.removeEventListener("resize", x);
5804
5816
  });
@@ -5809,7 +5821,7 @@ const Su = ({
5809
5821
  $ && Q && (P.value.maxWidth = `${Q.width - $.width - 20}px`), G.value = !0;
5810
5822
  }, 0);
5811
5823
  }, 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
5824
+ () => !h.value(n.internalModelValue) || !f.value(n.internalModelValue) || !S.value
5813
5825
  ), Y = () => {
5814
5826
  const v = r.value;
5815
5827
  return n.timePicker || n.monthPicker, v(Ge(n.internalModelValue));
@@ -5823,17 +5835,17 @@ const Su = ({
5823
5835
  s.value.rangeSeparator,
5824
5836
  n.modelAuto,
5825
5837
  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(
5838
+ ), 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
5839
  () => Array.isArray(fe.value) ? fe.value.join(I()) : fe.value
5828
5840
  ), se = () => {
5829
- g.value(n.internalModelValue) && f.value(n.internalModelValue) && S.value ? t("select-date") : t("invalid-select");
5841
+ h.value(n.internalModelValue) && f.value(n.internalModelValue) && S.value ? t("select-date") : t("invalid-select");
5830
5842
  };
5831
5843
  return (v, w) => (p(), C("div", {
5832
5844
  ref_key: "actionRowRef",
5833
5845
  ref: R,
5834
5846
  class: "dp__action_row"
5835
5847
  }, [
5836
- v.$slots["action-row"] ? ne(v.$slots, "action-row", Qe(Fe({ key: 0 }, {
5848
+ v.$slots["action-row"] ? ne(v.$slots, "action-row", Qe(Ie({ key: 0 }, {
5837
5849
  internalModelValue: v.internalModelValue,
5838
5850
  disabled: k.value,
5839
5851
  selectDate: () => v.$emit("select-date"),
@@ -5896,7 +5908,7 @@ const Su = ({
5896
5908
  ], 64))
5897
5909
  ], 512));
5898
5910
  }
5899
- }), ju = { class: "dp__selection_grid_header" }, qu = ["aria-selected", "aria-disabled", "data-test", "onClick", "onKeydown", "onMouseover"], Uu = ["aria-label"], Ta = /* @__PURE__ */ Te({
5911
+ }), ju = { class: "dp__selection_grid_header" }, qu = ["aria-selected", "aria-disabled", "data-test", "onClick", "onKeydown", "onMouseover"], Uu = ["aria-label"], Da = /* @__PURE__ */ De({
5900
5912
  __name: "SelectionOverlay",
5901
5913
  props: {
5902
5914
  items: {},
@@ -5918,9 +5930,9 @@ const Su = ({
5918
5930
  },
5919
5931
  emits: ["selected", "toggle", "reset-flow", "hover-value"],
5920
5932
  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(
5933
+ const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Nt(), o = t, s = e, { defaultedAriaLabels: m, defaultedTextInput: b, defaultedConfig: g } = Ne(
5922
5934
  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);
5935
+ ), { 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
5936
  ar(() => {
5925
5937
  f.value = null;
5926
5938
  }), qe(() => {
@@ -5931,8 +5943,8 @@ const Su = ({
5931
5943
  s.arrowNavigation && ((i = s.headerRefs) != null && i.length ? r(L) : n(L));
5932
5944
  }, x = () => {
5933
5945
  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);
5946
+ const i = Ue(T);
5947
+ i && (b.value.enabled || (f.value ? (L = f.value) == null || L.focus({ preventScroll: !0 }) : i.focus({ preventScroll: !0 })), h.value = i.clientHeight < i.scrollHeight);
5936
5948
  }, S = H(
5937
5949
  () => ({
5938
5950
  dp__overlay: !0,
@@ -5948,7 +5960,7 @@ const Su = ({
5948
5960
  dp__btn: !0,
5949
5961
  dp__button: !0,
5950
5962
  dp__overlay_action: !0,
5951
- dp__over_action_scroll: g.value,
5963
+ dp__over_action_scroll: h.value,
5952
5964
  dp__button_bottom: s.isLast
5953
5965
  })
5954
5966
  ), oe = H(() => {
@@ -5966,8 +5978,8 @@ const Su = ({
5966
5978
  );
5967
5979
  const fe = (L = !0) => {
5968
5980
  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);
5981
+ const i = Ue(f), E = Ue(T), le = Ue(G), te = Ue(O), y = le ? le.getBoundingClientRect().height : 0;
5982
+ E && (E.getBoundingClientRect().height ? P.value = E.getBoundingClientRect().height - y : P.value = g.value.modeHeight - y), i && te && L && (te.scrollTop = i.offsetTop - te.offsetTop - (P.value / 2 - i.getBoundingClientRect().height) - y);
5971
5983
  });
5972
5984
  }, I = (L) => {
5973
5985
  L.disabled || o("selected", L.value);
@@ -5982,7 +5994,7 @@ const Su = ({
5982
5994
  const E = (L = s.headerRefs) != null && L.length ? [s.headerRefs].concat(_.value) : _.value.concat([s.skipButtonRef ? [] : [G.value]]);
5983
5995
  l(Ge(E), (i = s.headerRefs) != null && i.length ? "monthPicker" : "selectionGrid");
5984
5996
  }, $ = (L) => {
5985
- s.arrowNavigation || Yt(L, y.value, !0);
5997
+ s.arrowNavigation || Yt(L, g.value, !0);
5986
5998
  }, Q = (L) => {
5987
5999
  W.value = L, o("hover-value", L);
5988
6000
  }, re = () => {
@@ -6018,7 +6030,7 @@ const Su = ({
6018
6030
  var E;
6019
6031
  return p(), C("div", {
6020
6032
  ref_key: "gridWrapRef",
6021
- ref: D,
6033
+ ref: T,
6022
6034
  class: ye(S.value),
6023
6035
  style: tt(k.value),
6024
6036
  role: "dialog",
@@ -6040,29 +6052,29 @@ const Su = ({
6040
6052
  class: ye(["dp__overlay_row", { dp__flex_row: L.items.length >= 3 }]),
6041
6053
  role: "row"
6042
6054
  }, [
6043
- (p(!0), C(_e, null, Ee(le, (h, ue) => (p(), C("div", {
6044
- key: h.value,
6055
+ (p(!0), C(_e, null, Ee(le, (y, ue) => (p(), C("div", {
6056
+ key: y.value,
6045
6057
  ref_for: !0,
6046
- ref: (ge) => v(ge, h, te, ue),
6058
+ ref: (ge) => v(ge, y, te, ue),
6047
6059
  role: "gridcell",
6048
6060
  class: ye(Y.value),
6049
- "aria-selected": h.active || void 0,
6050
- "aria-disabled": h.disabled || void 0,
6061
+ "aria-selected": y.active || void 0,
6062
+ "aria-disabled": y.disabled || void 0,
6051
6063
  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)
6064
+ "data-test": y.text,
6065
+ onClick: (ge) => I(y),
6066
+ onKeydown: (ge) => c(st)(ge, () => I(y), !0),
6067
+ onMouseover: (ge) => Q(y.value)
6056
6068
  }, [
6057
6069
  z("div", {
6058
- class: ye(h.className)
6070
+ class: ye(y.className)
6059
6071
  }, [
6060
6072
  L.$slots.item ? ne(L.$slots, "item", {
6061
6073
  key: 0,
6062
- item: h
6074
+ item: y
6063
6075
  }) : N("", !0),
6064
6076
  L.$slots.item ? N("", !0) : (p(), C(_e, { key: 1 }, [
6065
- dt(ke(h.text), 1)
6077
+ dt(ke(y.text), 1)
6066
6078
  ], 64))
6067
6079
  ], 2)
6068
6080
  ], 42, qu))), 128))
@@ -6086,7 +6098,7 @@ const Su = ({
6086
6098
  ], 38);
6087
6099
  };
6088
6100
  }
6089
- }), Va = /* @__PURE__ */ Te({
6101
+ }), Va = /* @__PURE__ */ De({
6090
6102
  __name: "InstanceWrap",
6091
6103
  props: {
6092
6104
  multiCalendars: {},
@@ -6118,7 +6130,7 @@ const Su = ({
6118
6130
  ], 2))), 128))
6119
6131
  ], 2));
6120
6132
  }
6121
- }), Gu = ["aria-label", "aria-disabled"], ga = /* @__PURE__ */ Te({
6133
+ }), Gu = ["aria-label", "aria-disabled"], ga = /* @__PURE__ */ De({
6122
6134
  compatConfig: {
6123
6135
  MODE: 3
6124
6136
  },
@@ -6148,7 +6160,7 @@ const Su = ({
6148
6160
  ], 2)
6149
6161
  ], 40, Gu));
6150
6162
  }
6151
- }), Qu = { class: "dp--year-mode-picker" }, Xu = ["aria-label", "data-test"], zl = /* @__PURE__ */ Te({
6163
+ }), Qu = { class: "dp--year-mode-picker" }, Xu = ["aria-label", "data-test"], zl = /* @__PURE__ */ De({
6152
6164
  __name: "YearModePicker",
6153
6165
  props: {
6154
6166
  ...bt,
@@ -6160,11 +6172,11 @@ const Su = ({
6160
6172
  },
6161
6173
  emits: ["toggle-year-picker", "year-select", "handle-year"],
6162
6174
  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) => {
6175
+ const t = a, n = e, { showRightIcon: l, showLeftIcon: r } = Na(), { defaultedConfig: o, defaultedMultiCalendars: s, defaultedAriaLabels: m, defaultedTransitions: b } = Ne(n), { showTransition: g, transitionName: u } = Ma(b), h = (_ = !1, W) => {
6164
6176
  t("toggle-year-picker", { flow: _, show: W });
6165
6177
  }, f = (_) => {
6166
6178
  t("year-select", _);
6167
- }, D = (_ = !1) => {
6179
+ }, T = (_ = !1) => {
6168
6180
  t("handle-year", _);
6169
6181
  };
6170
6182
  return (_, W) => {
@@ -6175,7 +6187,7 @@ const Su = ({
6175
6187
  ref: "mpPrevIconRef",
6176
6188
  "aria-label": (G = c(m)) == null ? void 0 : G.prevYear,
6177
6189
  disabled: e.isDisabled(!1),
6178
- onActivate: W[0] || (W[0] = (R) => D(!1))
6190
+ onActivate: W[0] || (W[0] = (R) => T(!1))
6179
6191
  }, {
6180
6192
  default: ve(() => [
6181
6193
  _.$slots["arrow-left"] ? ne(_.$slots, "arrow-left", { key: 0 }) : N("", !0),
@@ -6189,8 +6201,8 @@ const Su = ({
6189
6201
  type: "button",
6190
6202
  "aria-label": (P = c(m)) == null ? void 0 : P.openYearsOverlay,
6191
6203
  "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"]))
6204
+ onClick: W[1] || (W[1] = () => h(!1)),
6205
+ onKeydown: W[2] || (W[2] = Zt(() => h(!1), ["enter"]))
6194
6206
  }, [
6195
6207
  _.$slots.year ? ne(_.$slots, "year", {
6196
6208
  key: 0,
@@ -6205,7 +6217,7 @@ const Su = ({
6205
6217
  ref: "mpNextIconRef",
6206
6218
  "aria-label": (O = c(m)) == null ? void 0 : O.nextYear,
6207
6219
  disabled: e.isDisabled(!0),
6208
- onActivate: W[3] || (W[3] = (R) => D(!0))
6220
+ onActivate: W[3] || (W[3] = (R) => T(!0))
6209
6221
  }, {
6210
6222
  default: ve(() => [
6211
6223
  _.$slots["arrow-right"] ? ne(_.$slots, "arrow-right", { key: 0 }) : N("", !0),
@@ -6215,10 +6227,10 @@ const Su = ({
6215
6227
  }, 8, ["aria-label", "disabled"])) : N("", !0),
6216
6228
  Oe(rt, {
6217
6229
  name: c(u)(e.showYearPicker),
6218
- css: c(y)
6230
+ css: c(g)
6219
6231
  }, {
6220
6232
  default: ve(() => [
6221
- e.showYearPicker ? (p(), be(Ta, {
6233
+ e.showYearPicker ? (p(), be(Da, {
6222
6234
  key: 0,
6223
6235
  items: e.items,
6224
6236
  "text-input": _.textInput,
@@ -6228,7 +6240,7 @@ const Su = ({
6228
6240
  "hide-navigation": _.hideNavigation,
6229
6241
  "aria-labels": _.ariaLabels,
6230
6242
  type: "year",
6231
- onToggle: g,
6243
+ onToggle: h,
6232
6244
  onSelected: W[4] || (W[4] = (R) => f(R))
6233
6245
  }, at({
6234
6246
  "button-icon": ve(() => [
@@ -6256,8 +6268,8 @@ const Su = ({
6256
6268
  }
6257
6269
  }), Yn = (e, a, t) => {
6258
6270
  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));
6271
+ if (a.value.some((n) => Te(e, n))) {
6272
+ const n = a.value.filter((l) => !Te(l, e));
6261
6273
  a.value = n.length ? n : null;
6262
6274
  } else
6263
6275
  (t && +t > a.value.length || !t) && a.value.push(e);
@@ -6265,12 +6277,12 @@ const Su = ({
6265
6277
  a.value = [e];
6266
6278
  }, Bn = (e, a, t) => {
6267
6279
  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;
6280
+ 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
6281
  }, Ha = (e, a, t, n) => {
6270
6282
  e && (e[0] && e[1] && t && a("auto-apply"), e[0] && !e[1] && n && t && a("auto-apply"));
6271
6283
  }, jl = (e) => {
6272
6284
  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 = ({
6285
+ }, 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
6286
  multiCalendars: e,
6275
6287
  highlight: a,
6276
6288
  propDates: t,
@@ -6282,7 +6294,7 @@ const Su = ({
6282
6294
  month: m,
6283
6295
  emit: b
6284
6296
  }) => {
6285
- const y = H(() => Rn(r.yearRange, r.locale, r.reverseYears)), u = U([!1]), g = H(() => (S, k) => {
6297
+ const g = H(() => Rn(r.yearRange, r.locale, r.reverseYears)), u = U([!1]), h = H(() => (S, k) => {
6286
6298
  const Y = Se(ht(/* @__PURE__ */ new Date()), {
6287
6299
  month: m.value(S),
6288
6300
  year: s.value(S)
@@ -6302,7 +6314,7 @@ const Su = ({
6302
6314
  const k = Se(q(), n.value[S - 1]);
6303
6315
  n.value[S] = { month: Me(k), year: we(yn(k, 1)) };
6304
6316
  }
6305
- }, D = (S) => {
6317
+ }, T = (S) => {
6306
6318
  if (!S)
6307
6319
  return f();
6308
6320
  const k = Se(q(), n.value[S]);
@@ -6317,8 +6329,8 @@ const Su = ({
6317
6329
  W(), e.value.count && f();
6318
6330
  });
6319
6331
  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) => {
6332
+ 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);
6333
+ }, P = H(() => (S) => oa(g.value, (k) => {
6322
6334
  var Y;
6323
6335
  const ee = s.value(S) === k.value, oe = _a(
6324
6336
  k.value,
@@ -6329,7 +6341,7 @@ const Su = ({
6329
6341
  })), O = (S, k) => {
6330
6342
  G(S, k), x(k);
6331
6343
  }, R = (S, k = !1) => {
6332
- if (!g.value(S, k)) {
6344
+ if (!h.value(S, k)) {
6333
6345
  const Y = k ? s.value(S) + 1 : s.value(S) - 1;
6334
6346
  G(Y, S);
6335
6347
  }
@@ -6337,7 +6349,7 @@ const Su = ({
6337
6349
  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
6350
  };
6339
6351
  return {
6340
- isDisabled: g,
6352
+ isDisabled: h,
6341
6353
  groupedYears: P,
6342
6354
  showYearPicker: u,
6343
6355
  selectYear: G,
@@ -6355,9 +6367,9 @@ const Su = ({
6355
6367
  defaultedHighlight: s,
6356
6368
  propDates: m,
6357
6369
  defaultedTz: b,
6358
- defaultedFilters: y,
6370
+ defaultedFilters: g,
6359
6371
  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), {
6372
+ } = Ne(e), { modelValue: h, year: f, month: T, calendars: _ } = Ta(e, a), W = H(() => Ol(e.formatLocale, e.locale, e.monthNameFormat)), G = U(null), { checkMinMaxRange: P } = Ft(e), {
6361
6373
  selectYear: O,
6362
6374
  groupedYears: R,
6363
6375
  showYearPicker: x,
@@ -6366,62 +6378,62 @@ const Su = ({
6366
6378
  handleYear: Y,
6367
6379
  isDisabled: ee
6368
6380
  } = Ul({
6369
- modelValue: g,
6381
+ modelValue: h,
6370
6382
  multiCalendars: t,
6371
6383
  highlight: s,
6372
6384
  calendars: _,
6373
6385
  year: f,
6374
6386
  propDates: m,
6375
- month: D,
6376
- filters: y,
6387
+ month: T,
6388
+ filters: g,
6377
6389
  props: e,
6378
6390
  emit: a
6379
6391
  });
6380
6392
  qe(() => {
6381
- e.startDate && (g.value && e.focusStartDate || !g.value) && O(we(q(e.startDate)), 0);
6393
+ e.startDate && (h.value && e.focusStartDate || !h.value) && O(we(q(e.startDate)), 0);
6382
6394
  });
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) => {
6395
+ const oe = (i) => i ? { month: Me(i), year: we(i) } : { month: null, year: null }, fe = () => h.value ? Array.isArray(h.value) ? h.value.map((i) => oe(i)) : oe(h.value) : oe(), I = (i, E) => {
6384
6396
  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;
6397
+ return Array.isArray(te) ? te.some((y) => y.year === (le == null ? void 0 : le.year) && y.month === E) : (le == null ? void 0 : le.year) === te.year && E === te.month;
6386
6398
  }, V = (i, E, le) => {
6387
- var te, h;
6399
+ var te, y;
6388
6400
  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;
6401
+ return Array.isArray(ue) ? f.value(E) === ((te = ue[le]) == null ? void 0 : te.year) && i === ((y = ue[le]) == null ? void 0 : y.month) : !1;
6390
6402
  }, se = (i, E) => {
6391
6403
  if (o.value.enabled) {
6392
6404
  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;
6405
+ if (Array.isArray(h.value) && Array.isArray(le)) {
6406
+ const te = V(i, E, 0) || V(i, E, 1), y = $t(ht(q()), i, f.value(E));
6407
+ return Ia(h.value, G.value, y) && !te;
6396
6408
  }
6397
6409
  return !1;
6398
6410
  }
6399
6411
  return !1;
6400
6412
  }, v = H(() => (i) => oa(W.value, (E) => {
6401
6413
  var le;
6402
- const te = I(i, E.value), h = _a(
6414
+ const te = I(i, E.value), y = _a(
6403
6415
  E.value,
6404
6416
  Bl(f.value(i), m.value.minDate),
6405
6417
  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 };
6418
+ ) || 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));
6419
+ return { active: te, disabled: y, isBetween: ue, highlighted: ge };
6408
6420
  })), 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");
6421
+ const le = h.value ? h.value : ht(/* @__PURE__ */ new Date());
6422
+ h.value = $t(le, i, f.value(E)), a("auto-apply"), a("update-flow-step");
6411
6423
  }, Q = (i, E) => {
6412
6424
  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);
6425
+ o.value.fixedEnd || o.value.fixedStart ? h.value = ql(le, h, a, o) : h.value ? P(le, h.value) && (h.value = Bn(h, w(i, E), a)) : h.value = [w(i, E)], mt().then(() => {
6426
+ Ha(h.value, a, e.autoApply, e.modelAuto);
6415
6427
  });
6416
6428
  }, re = (i, E) => {
6417
- Yn(w(i, E), g, u.value.limit), a("auto-apply", !0);
6429
+ Yn(w(i, E), h, u.value.limit), a("auto-apply", !0);
6418
6430
  }, 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
6431
  O(i, E), L(E, i, null);
6420
6432
  }, L = (i, E, le) => {
6421
6433
  let te = le;
6422
6434
  if (!te && te !== 0) {
6423
- const h = fe();
6424
- te = Array.isArray(h) ? h[i].month : h.month;
6435
+ const y = fe();
6436
+ te = Array.isArray(y) ? y[i].month : y.month;
6425
6437
  }
6426
6438
  a("update-month-year", { instance: i, year: E, month: te });
6427
6439
  };
@@ -6435,11 +6447,11 @@ const Su = ({
6435
6447
  defaultedTransitions: l,
6436
6448
  defaultedConfig: r,
6437
6449
  showYearPicker: x,
6438
- modelValue: g,
6450
+ modelValue: h,
6439
6451
  presetDate: (i, E) => {
6440
6452
  jl({
6441
6453
  value: i,
6442
- modelValue: g,
6454
+ modelValue: h,
6443
6455
  range: o.value.enabled,
6444
6456
  timezone: E ? void 0 : b.value.timezone
6445
6457
  }), a("auto-apply");
@@ -6454,7 +6466,7 @@ const Su = ({
6454
6466
  handleYear: Y,
6455
6467
  getModelMonthYear: fe
6456
6468
  };
6457
- }, Zu = /* @__PURE__ */ Te({
6469
+ }, Zu = /* @__PURE__ */ De({
6458
6470
  compatConfig: {
6459
6471
  MODE: 3
6460
6472
  },
@@ -6484,11 +6496,11 @@ const Su = ({
6484
6496
  groupedMonths: s,
6485
6497
  groupedYears: m,
6486
6498
  year: b,
6487
- isDisabled: y,
6499
+ isDisabled: g,
6488
6500
  defaultedMultiCalendars: u,
6489
- defaultedConfig: g,
6501
+ defaultedConfig: h,
6490
6502
  showYearPicker: f,
6491
- modelValue: D,
6503
+ modelValue: T,
6492
6504
  presetDate: _,
6493
6505
  setHoverDate: W,
6494
6506
  selectMonth: G,
@@ -6499,7 +6511,7 @@ const Su = ({
6499
6511
  getModelMonthYear: S
6500
6512
  } = Ju(o, n);
6501
6513
  return a({ getSidebarProps: () => ({
6502
- modelValue: D,
6514
+ modelValue: T,
6503
6515
  year: b,
6504
6516
  getModelMonthYear: S,
6505
6517
  selectMonth: G,
@@ -6515,20 +6527,20 @@ const Su = ({
6515
6527
  key: 0,
6516
6528
  value: k.internalModelValue
6517
6529
  }) : N("", !0),
6518
- k.$slots["month-year"] ? ne(k.$slots, "month-year", Qe(Fe({ key: 1 }, {
6530
+ k.$slots["month-year"] ? ne(k.$slots, "month-year", Qe(Ie({ key: 1 }, {
6519
6531
  year: c(b),
6520
6532
  months: c(s)(ee),
6521
6533
  years: c(m)(ee),
6522
6534
  selectMonth: c(G),
6523
6535
  selectYear: c(P),
6524
6536
  instance: ee
6525
- }))) : (p(), be(Ta, {
6537
+ }))) : (p(), be(Da, {
6526
6538
  key: 2,
6527
6539
  items: c(s)(ee),
6528
6540
  "arrow-navigation": k.arrowNavigation,
6529
- "is-last": k.autoApply && !c(g).keepActionRow,
6541
+ "is-last": k.autoApply && !c(h).keepActionRow,
6530
6542
  "esc-close": k.escClose,
6531
- height: c(g).modeHeight,
6543
+ height: c(h).modeHeight,
6532
6544
  config: k.config,
6533
6545
  "no-overlay-focus": !!(k.noOverlayFocus || k.textInput),
6534
6546
  "use-relative": "",
@@ -6537,12 +6549,12 @@ const Su = ({
6537
6549
  onHoverValue: (oe) => c(W)(oe, ee)
6538
6550
  }, at({
6539
6551
  header: ve(() => [
6540
- Oe(zl, Fe(k.$props, {
6552
+ Oe(zl, Ie(k.$props, {
6541
6553
  items: c(m)(ee),
6542
6554
  instance: ee,
6543
6555
  "show-year-picker": c(f)[ee],
6544
6556
  year: c(b)(ee),
6545
- "is-disabled": (oe) => c(y)(ee, oe),
6557
+ "is-disabled": (oe) => c(g)(ee, oe),
6546
6558
  onHandleYear: (oe) => c(x)(ee, oe),
6547
6559
  onYearSelect: (oe) => c(R)(oe, ee),
6548
6560
  onToggleYearPicker: (oe) => c(O)(ee, oe == null ? void 0 : oe.flow, oe == null ? void 0 : oe.show)
@@ -6573,35 +6585,35 @@ const Su = ({
6573
6585
  }, 8, ["multi-calendars", "collapse"]));
6574
6586
  }
6575
6587
  }), 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();
6588
+ const { modelValue: t } = Ta(e, a), n = U(null), { defaultedHighlight: l, defaultedMultiDates: r, defaultedFilters: o, defaultedRange: s, propDates: m } = Ne(e), b = U();
6577
6589
  qe(() => {
6578
6590
  e.startDate && (t.value && e.focusStartDate || !t.value) && (b.value = we(q(e.startDate)));
6579
6591
  });
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,
6592
+ const g = (T) => Array.isArray(t.value) ? t.value.some((_) => we(_) === T) : t.value ? we(t.value) === T : !1, u = (T) => s.value.enabled && Array.isArray(t.value) ? Ia(t.value, n.value, f(T)) : !1, h = H(() => oa(Rn(e.yearRange, e.locale, e.reverseYears), (T) => {
6593
+ const _ = g(T.value), W = _a(
6594
+ T.value,
6583
6595
  sa(m.value.minDate),
6584
6596
  sa(m.value.maxDate)
6585
- ) || o.value.years.includes(D.value), G = u(D.value) && !_, P = En(l.value, D.value);
6597
+ ) || o.value.years.includes(T.value), G = u(T.value) && !_, P = En(l.value, T.value);
6586
6598
  return { active: _, disabled: W, isBetween: G, highlighted: P };
6587
- })), f = (D) => Mt(ht(/* @__PURE__ */ new Date()), D);
6599
+ })), f = (T) => Mt(ht(/* @__PURE__ */ new Date()), T);
6588
6600
  return {
6589
- groupedYears: g,
6601
+ groupedYears: h,
6590
6602
  modelValue: t,
6591
6603
  focusYear: b,
6592
- setHoverValue: (D) => {
6593
- n.value = Mt(ht(/* @__PURE__ */ new Date()), D);
6604
+ setHoverValue: (T) => {
6605
+ n.value = Mt(ht(/* @__PURE__ */ new Date()), T);
6594
6606
  },
6595
- selectYear: (D) => {
6607
+ selectYear: (T) => {
6596
6608
  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(() => {
6609
+ if (a("update-month-year", { instance: 0, year: T }), r.value.enabled)
6610
+ return t.value ? Array.isArray(t.value) && (((_ = t.value) == null ? void 0 : _.map((W) => we(W))).includes(T) ? t.value = t.value.filter((W) => we(W) !== T) : t.value.push(Mt(ct(q()), T))) : t.value = [Mt(ct(q()), T)], a("auto-apply", !0);
6611
+ s.value.enabled ? (t.value = Bn(t, f(T), a), mt().then(() => {
6600
6612
  Ha(t.value, a, e.autoApply, e.modelAuto);
6601
- })) : (t.value = f(D), a("auto-apply"));
6613
+ })) : (t.value = f(T), a("auto-apply"));
6602
6614
  }
6603
6615
  };
6604
- }, ed = /* @__PURE__ */ Te({
6616
+ }, ed = /* @__PURE__ */ De({
6605
6617
  compatConfig: {
6606
6618
  MODE: 3
6607
6619
  },
@@ -6618,23 +6630,23 @@ const Su = ({
6618
6630
  "update-month-year"
6619
6631
  ],
6620
6632
  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);
6633
+ const n = t, l = e, { groupedYears: r, modelValue: o, focusYear: s, selectYear: m, setHoverValue: b } = Ku(l, n), { defaultedConfig: g } = Ne(l);
6622
6634
  return a({ getSidebarProps: () => ({
6623
6635
  modelValue: o,
6624
6636
  selectYear: m
6625
- }) }), (u, g) => (p(), C("div", null, [
6637
+ }) }), (u, h) => (p(), C("div", null, [
6626
6638
  u.$slots["top-extra"] ? ne(u.$slots, "top-extra", {
6627
6639
  key: 0,
6628
6640
  value: u.internalModelValue
6629
6641
  }) : N("", !0),
6630
- u.$slots["month-year"] ? ne(u.$slots, "month-year", Qe(Fe({ key: 1 }, {
6642
+ u.$slots["month-year"] ? ne(u.$slots, "month-year", Qe(Ie({ key: 1 }, {
6631
6643
  years: c(r),
6632
6644
  selectYear: c(m)
6633
- }))) : (p(), be(Ta, {
6645
+ }))) : (p(), be(Da, {
6634
6646
  key: 2,
6635
6647
  items: c(r),
6636
- "is-last": u.autoApply && !c(y).keepActionRow,
6637
- height: c(y).modeHeight,
6648
+ "is-last": u.autoApply && !c(g).keepActionRow,
6649
+ height: c(g).modeHeight,
6638
6650
  config: u.config,
6639
6651
  "no-overlay-focus": !!(u.noOverlayFocus || u.textInput),
6640
6652
  "focus-value": c(s),
@@ -6659,7 +6671,7 @@ const Su = ({
6659
6671
  }), td = {
6660
6672
  key: 0,
6661
6673
  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({
6674
+ }, 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
6675
  compatConfig: {
6664
6676
  MODE: 3
6665
6677
  },
@@ -6687,7 +6699,7 @@ const Su = ({
6687
6699
  "am-pm-change"
6688
6700
  ],
6689
6701
  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({
6702
+ const n = t, l = e, { setTimePickerElements: r, setTimePickerBackRef: o } = Nt(), { defaultedAriaLabels: s, defaultedTransitions: m, defaultedFilters: b, defaultedConfig: g, defaultedRange: u } = Ne(l), { transitionName: h, showTransition: f } = Ma(m), T = ka({
6691
6703
  hours: !1,
6692
6704
  minutes: !1,
6693
6705
  seconds: !1
@@ -6727,7 +6739,7 @@ const Su = ({
6727
6739
  }), d;
6728
6740
  }), se = H(() => V.value.filter((d) => !d.separator)), v = H(() => (d) => {
6729
6741
  if (d === "hours") {
6730
- const j = h(+l.hours);
6742
+ const j = y(+l.hours);
6731
6743
  return { text: j < 10 ? `0${j}` : `${j}`, value: j };
6732
6744
  }
6733
6745
  return { text: l[d] < 10 ? `0${l[d]}` : `${l[d]}`, value: l[d] };
@@ -6752,7 +6764,7 @@ const Su = ({
6752
6764
  );
6753
6765
  return ce && F ? (wa(M, F) || ea(M, F)) && (la(M, ce) || ea(M, ce)) : ce ? la(M, ce) || ea(M, ce) : F ? wa(M, F) || ea(M, F) : !0;
6754
6766
  }, 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));
6767
+ L(d) || (T[d] = !T[d], T[d] ? n("overlay-opened", d) : n("overlay-closed", d));
6756
6768
  }, E = (d) => d === "hours" ? Ct : d === "minutes" ? Lt : na, le = () => {
6757
6769
  P.value && clearTimeout(P.value);
6758
6770
  }, te = (d, j = !0, ce) => {
@@ -6760,13 +6772,13 @@ const Su = ({
6760
6772
  B(+l[d] + M, d) && n(
6761
6773
  `update:${d}`,
6762
6774
  E(d)(F({ [d]: +l[d] }, { [d]: +l[`${d}Increment`] }))
6763
- ), !(ce != null && ce.keyboard) && y.value.timeArrowHoldThreshold && (P.value = setTimeout(() => {
6775
+ ), !(ce != null && ce.keyboard) && g.value.timeArrowHoldThreshold && (P.value = setTimeout(() => {
6764
6776
  te(d, j);
6765
- }, y.value.timeArrowHoldThreshold));
6766
- }, h = (d) => l.is24 ? d : (d >= 12 ? _.value = "PM" : _.value = "AM", tu(d)), ue = () => {
6777
+ }, g.value.timeArrowHoldThreshold));
6778
+ }, y = (d) => l.is24 ? d : (d >= 12 ? _.value = "PM" : _.value = "AM", tu(d)), ue = () => {
6767
6779
  _.value === "PM" ? (_.value = "AM", n("update:hours", l.hours - 12)) : (_.value = "PM", n("update:hours", l.hours + 12)), n("am-pm-change", _.value);
6768
6780
  }, ge = (d) => {
6769
- D[d] = !0;
6781
+ T[d] = !0;
6770
6782
  }, K = (d, j, ce) => {
6771
6783
  if (d && l.arrowNavigation) {
6772
6784
  Array.isArray(G.value[j]) ? G.value[j][ce] = d : G.value[j] = [d];
@@ -6804,8 +6816,8 @@ const Su = ({
6804
6816
  "aria-label": (X = c(s)) == null ? void 0 : X.incrementValue(F.type),
6805
6817
  tabindex: "0",
6806
6818
  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,
6819
+ onClick: (Pe) => c(g).timeArrowHoldThreshold ? void 0 : te(F.type, !0),
6820
+ onMousedown: (Pe) => c(g).timeArrowHoldThreshold ? te(F.type, !0) : void 0,
6809
6821
  onMouseup: le
6810
6822
  }, [
6811
6823
  l.timePickerInline ? (p(), C(_e, { key: 1 }, [
@@ -6858,8 +6870,8 @@ const Su = ({
6858
6870
  "aria-label": (Re = c(s)) == null ? void 0 : Re.decrementValue(F.type),
6859
6871
  tabindex: "0",
6860
6872
  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,
6873
+ onClick: (Pe) => c(g).timeArrowHoldThreshold ? void 0 : te(F.type, !1),
6874
+ onMousedown: (Pe) => c(g).timeArrowHoldThreshold ? te(F.type, !1) : void 0,
6863
6875
  onMouseup: le
6864
6876
  }, [
6865
6877
  l.timePickerInline ? (p(), C(_e, { key: 1 }, [
@@ -6894,14 +6906,14 @@ const Su = ({
6894
6906
  ])),
6895
6907
  (p(!0), C(_e, null, Ee(se.value, (F, M) => (p(), be(rt, {
6896
6908
  key: M,
6897
- name: c(g)(D[F.type]),
6909
+ name: c(h)(T[F.type]),
6898
6910
  css: c(f)
6899
6911
  }, {
6900
6912
  default: ve(() => [
6901
- D[F.type] ? (p(), be(Ta, {
6913
+ T[F.type] ? (p(), be(Da, {
6902
6914
  key: 0,
6903
6915
  items: Q(F.type),
6904
- "is-last": d.autoApply && !c(y).keepActionRow,
6916
+ "is-last": d.autoApply && !c(g).keepActionRow,
6905
6917
  "esc-close": d.escClose,
6906
6918
  type: F.type,
6907
6919
  "text-input": d.textInput,
@@ -6944,7 +6956,7 @@ const Su = ({
6944
6956
  ]));
6945
6957
  };
6946
6958
  }
6947
- }), md = { class: "dp--tp-wrap" }, vd = ["aria-label", "tabindex"], pd = ["tabindex"], fd = ["aria-label"], Gl = /* @__PURE__ */ Te({
6959
+ }), md = { class: "dp--tp-wrap" }, vd = ["aria-label", "tabindex"], pd = ["tabindex"], fd = ["aria-label"], Gl = /* @__PURE__ */ De({
6948
6960
  compatConfig: {
6949
6961
  MODE: 3
6950
6962
  },
@@ -6971,17 +6983,17 @@ const Su = ({
6971
6983
  "am-pm-change"
6972
6984
  ],
6973
6985
  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);
6986
+ const n = t, l = e, { buildMatrix: r, setTimePicker: o } = Nt(), s = It(), { defaultedTransitions: m, defaultedAriaLabels: b, defaultedTextInput: g, defaultedConfig: u, defaultedRange: h } = Ne(l), { transitionName: f, showTransition: T } = Ma(m), { hideNavigationButtons: _ } = Na(), W = U(null), G = U(null), P = U([]), O = U(null);
6975
6987
  qe(() => {
6976
6988
  n("mount"), !l.timePicker && l.arrowNavigation ? r([Ue(W.value)], "time") : o(!0, l.timePicker);
6977
6989
  });
6978
- const R = H(() => g.value.enabled && l.modelAuto ? Sl(l.internalModelValue) : !0), x = U(!1), S = ($) => ({
6990
+ const R = H(() => h.value.enabled && l.modelAuto ? Sl(l.internalModelValue) : !0), x = U(!1), S = ($) => ({
6979
6991
  hours: Array.isArray(l.hours) ? l.hours[$] : l.hours,
6980
6992
  minutes: Array.isArray(l.minutes) ? l.minutes[$] : l.minutes,
6981
6993
  seconds: Array.isArray(l.seconds) ? l.seconds[$] : l.seconds
6982
6994
  }), k = H(() => {
6983
6995
  const $ = [];
6984
- if (g.value.enabled)
6996
+ if (h.value.enabled)
6985
6997
  for (let Q = 0; Q < 2; Q++)
6986
6998
  $.push(S(Q));
6987
6999
  else
@@ -6995,14 +7007,14 @@ const Su = ({
6995
7007
  dp__btn: !0,
6996
7008
  dp__button: !0,
6997
7009
  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 = ($) => {
7010
+ })), oe = ut(s, "timePicker"), fe = ($, Q, re) => h.value.enabled ? Q === 0 ? [$, k.value[1][re]] : [k.value[0][re], $] : $, I = ($) => {
6999
7011
  n("update:hours", $);
7000
7012
  }, V = ($) => {
7001
7013
  n("update:minutes", $);
7002
7014
  }, se = ($) => {
7003
7015
  n("update:seconds", $);
7004
7016
  }, v = () => {
7005
- if (O.value && !y.value.enabled && !l.noOverlayFocus) {
7017
+ if (O.value && !g.value.enabled && !l.noOverlayFocus) {
7006
7018
  const $ = El(O.value);
7007
7019
  $ && $.focus({ preventScroll: !0 });
7008
7020
  }
@@ -7031,7 +7043,7 @@ const Su = ({
7031
7043
  ]) : N("", !0),
7032
7044
  Oe(rt, {
7033
7045
  name: c(f)(x.value),
7034
- css: c(D) && !$.timePickerInline
7046
+ css: c(T) && !$.timePickerInline
7035
7047
  }, {
7036
7048
  default: ve(() => {
7037
7049
  var me;
@@ -7067,7 +7079,7 @@ const Su = ({
7067
7079
  key: 1,
7068
7080
  class: ye($.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
7069
7081
  }, [
7070
- (p(!0), C(_e, null, Ee(k.value, (B, L) => Xe((p(), be(cd, Fe({
7082
+ (p(!0), C(_e, null, Ee(k.value, (B, L) => Xe((p(), be(cd, Ie({
7071
7083
  key: L,
7072
7084
  ref_for: !0
7073
7085
  }, {
@@ -7095,7 +7107,7 @@ const Su = ({
7095
7107
  Ee(c(oe), (i, E) => ({
7096
7108
  name: i,
7097
7109
  fn: ve((le) => [
7098
- ne($.$slots, i, Fe({ ref_for: !0 }, le))
7110
+ ne($.$slots, i, Ie({ ref_for: !0 }, le))
7099
7111
  ])
7100
7112
  }))
7101
7113
  ]), 1040, ["validate-time", "onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [
@@ -7128,9 +7140,9 @@ const Su = ({
7128
7140
  };
7129
7141
  }
7130
7142
  }), 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) => {
7143
+ 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
7144
  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) => {
7145
+ }, b = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), g = (O, R) => {
7134
7146
  const x = Object.fromEntries(
7135
7147
  Object.keys(a).map((S) => S === O ? [S, R] : [S, a[S]].slice())
7136
7148
  );
@@ -7140,20 +7152,20 @@ const Su = ({
7140
7152
  x.hours[Y],
7141
7153
  x.minutes[Y],
7142
7154
  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))));
7155
+ ) : null, k = (Y) => Tn(t.value[Y], 0);
7156
+ return !(Te(S(0), S(1)) && (la(S(0), k(1)) || wa(S(1), k(0))));
7145
7157
  }
7146
7158
  return !0;
7147
7159
  }, u = (O, R) => {
7148
- y(O, R) && (m(O, R), n && n());
7149
- }, g = (O) => {
7160
+ g(O, R) && (m(O, R), n && n());
7161
+ }, h = (O) => {
7150
7162
  u("hours", O);
7151
7163
  }, f = (O) => {
7152
7164
  u("minutes", O);
7153
- }, D = (O) => {
7165
+ }, T = (O) => {
7154
7166
  u("seconds", O);
7155
7167
  }, _ = (O, R, x, S) => {
7156
- R && g(O), !R && !x && f(O), x && D(O), t.value && S(t.value);
7168
+ R && h(O), !R && !x && f(O), x && T(O), t.value && S(t.value);
7157
7169
  }, W = (O) => {
7158
7170
  if (O) {
7159
7171
  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 +7191,25 @@ const Su = ({
7179
7191
  });
7180
7192
  return {
7181
7193
  setTime: m,
7182
- updateHours: g,
7194
+ updateHours: h,
7183
7195
  updateMinutes: f,
7184
- updateSeconds: D,
7196
+ updateSeconds: T,
7185
7197
  getSetDateTime: s,
7186
7198
  updateTimeValues: _,
7187
7199
  getSecondsValue: o,
7188
7200
  assignStartTime: W,
7189
- validateTime: y,
7201
+ validateTime: g,
7190
7202
  disabledTimesConfig: P
7191
7203
  };
7192
7204
  }, 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() {
7205
+ const { modelValue: t, time: n } = Ta(e, a), { defaultedStartTime: l, defaultedRange: r } = Ne(e), { updateTimeValues: o, getSetDateTime: s, setTime: m, assignStartTime: b, disabledTimesConfig: g, validateTime: u } = Ql(e, n, t, h);
7206
+ function h() {
7195
7207
  a("update-flow-step");
7196
7208
  }
7197
7209
  const f = (R) => {
7198
7210
  const { hours: x, minutes: S, seconds: k } = R;
7199
7211
  return { hours: +x, minutes: +S, seconds: k ? +k : 0 };
7200
- }, D = () => {
7212
+ }, T = () => {
7201
7213
  if (e.startTime) {
7202
7214
  if (Array.isArray(e.startTime)) {
7203
7215
  const x = f(e.startTime[0]), S = f(e.startTime[1]);
@@ -7209,10 +7221,10 @@ const Su = ({
7209
7221
  return r.value.enabled ? [null, null] : null;
7210
7222
  }, _ = () => {
7211
7223
  if (r.value.enabled) {
7212
- const [R, x] = D();
7224
+ const [R, x] = T();
7213
7225
  t.value = [s(R, 0), s(x, 1)];
7214
7226
  } else
7215
- t.value = s(D());
7227
+ t.value = s(T());
7216
7228
  }, W = (R) => Array.isArray(R) ? [Gt(q(R[0])), Gt(q(R[1]))] : [Gt(R ?? q())], G = (R, x, S) => {
7217
7229
  m("hours", R), m("minutes", x), m("seconds", e.enableSeconds ? S : 0);
7218
7230
  }, P = () => {
@@ -7233,13 +7245,13 @@ const Su = ({
7233
7245
  return {
7234
7246
  modelValue: t,
7235
7247
  time: n,
7236
- disabledTimesConfig: y,
7248
+ disabledTimesConfig: g,
7237
7249
  updateTime: (R, x = !0, S = !1) => {
7238
7250
  o(R, x, S, O);
7239
7251
  },
7240
7252
  validateTime: u
7241
7253
  };
7242
- }, yd = /* @__PURE__ */ Te({
7254
+ }, yd = /* @__PURE__ */ De({
7243
7255
  compatConfig: {
7244
7256
  MODE: 3
7245
7257
  },
@@ -7257,22 +7269,22 @@ const Su = ({
7257
7269
  "overlay-toggle"
7258
7270
  ],
7259
7271
  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);
7272
+ const n = t, l = e, r = It(), o = ut(r, "timePicker"), s = U(null), { time: m, modelValue: b, disabledTimesConfig: g, updateTime: u, validateTime: h } = hd(l, n);
7261
7273
  return qe(() => {
7262
7274
  l.shadow || n("mount", null);
7263
7275
  }), a({ getSidebarProps: () => ({
7264
7276
  modelValue: b,
7265
7277
  time: m,
7266
7278
  updateTime: u
7267
- }), toggleTimePicker: (f, D = !1, _ = "") => {
7279
+ }), toggleTimePicker: (f, T = !1, _ = "") => {
7268
7280
  var W;
7269
- (W = s.value) == null || W.toggleTimePicker(f, D, _);
7270
- } }), (f, D) => (p(), be(Va, {
7281
+ (W = s.value) == null || W.toggleTimePicker(f, T, _);
7282
+ } }), (f, T) => (p(), be(Va, {
7271
7283
  "multi-calendars": 0,
7272
7284
  stretch: ""
7273
7285
  }, {
7274
7286
  default: ve(() => [
7275
- Oe(Gl, Fe({
7287
+ Oe(Gl, Ie({
7276
7288
  ref_key: "tpRef",
7277
7289
  ref: s
7278
7290
  }, f.$props, {
@@ -7280,15 +7292,15 @@ const Su = ({
7280
7292
  minutes: c(m).minutes,
7281
7293
  seconds: c(m).seconds,
7282
7294
  "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: _ }))
7295
+ "disabled-times-config": c(g),
7296
+ "validate-time": c(h),
7297
+ "onUpdate:hours": T[0] || (T[0] = (_) => c(u)(_)),
7298
+ "onUpdate:minutes": T[1] || (T[1] = (_) => c(u)(_, !1)),
7299
+ "onUpdate:seconds": T[2] || (T[2] = (_) => c(u)(_, !1, !0)),
7300
+ onAmPmChange: T[3] || (T[3] = (_) => f.$emit("am-pm-change", _)),
7301
+ onResetFlow: T[4] || (T[4] = (_) => f.$emit("reset-flow")),
7302
+ onOverlayClosed: T[5] || (T[5] = (_) => f.$emit("overlay-toggle", { open: !1, overlay: _ })),
7303
+ onOverlayOpened: T[6] || (T[6] = (_) => f.$emit("overlay-toggle", { open: !0, overlay: _ }))
7292
7304
  }), at({ _: 2 }, [
7293
7305
  Ee(c(o), (_, W) => ({
7294
7306
  name: _,
@@ -7304,7 +7316,7 @@ const Su = ({
7304
7316
  }), gd = { class: "dp--header-wrap" }, bd = {
7305
7317
  key: 0,
7306
7318
  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({
7319
+ }, wd = { key: 0 }, _d = { class: "dp__month_year_wrap" }, kd = ["aria-label", "data-test", "onClick", "onKeydown"], Md = /* @__PURE__ */ De({
7308
7320
  compatConfig: {
7309
7321
  MODE: 3
7310
7322
  },
@@ -7325,9 +7337,9 @@ const Su = ({
7325
7337
  defaultedMultiCalendars: s,
7326
7338
  defaultedFilters: m,
7327
7339
  defaultedConfig: b,
7328
- defaultedHighlight: y,
7340
+ defaultedHighlight: g,
7329
7341
  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]);
7342
+ } = 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
7343
  qe(() => {
7332
7344
  n("mount");
7333
7345
  });
@@ -7349,14 +7361,14 @@ const Su = ({
7349
7361
  B.value,
7350
7362
  Bl(l.year, u.value.minDate),
7351
7363
  Ll(l.year, u.value.maxDate)
7352
- ) || m.value.months.includes(B.value), E = Hl(y.value, B.value, l.year);
7364
+ ) || m.value.months.includes(B.value), E = Hl(g.value, B.value, l.year);
7353
7365
  return { active: L, disabled: i, highlighted: E };
7354
7366
  })), V = H(() => oa(l.years, (B) => {
7355
7367
  const L = l.year === B.value, i = _a(
7356
7368
  B.value,
7357
7369
  sa(u.value.minDate),
7358
7370
  sa(u.value.maxDate)
7359
- ) || m.value.years.includes(B.value), E = En(y.value, B.value);
7371
+ ) || m.value.years.includes(B.value), E = En(g.value, B.value);
7360
7372
  return { active: L, disabled: i, highlighted: E };
7361
7373
  })), se = (B, L, i) => {
7362
7374
  i !== void 0 ? B.value = i : B.value = !B.value, B.value ? n("overlay-opened", L) : n("overlay-closed", L);
@@ -7367,7 +7379,7 @@ const Su = ({
7367
7379
  }, $ = (B) => {
7368
7380
  B || n("reset-flow");
7369
7381
  }, Q = (B, L) => {
7370
- l.arrowNavigation && (S.value[L] = Ue(B), D(S.value, "monthYear"));
7382
+ l.arrowNavigation && (S.value[L] = Ue(B), T(S.value, "monthYear"));
7371
7383
  }, re = H(() => {
7372
7384
  var B, L;
7373
7385
  return [
@@ -7427,12 +7439,12 @@ const Su = ({
7427
7439
  dp__year_disable_select: B.disableYearSelect
7428
7440
  }])
7429
7441
  }, [
7430
- (p(!0), C(_e, null, Ee(me.value, (te, h) => (p(), C(_e, {
7442
+ (p(!0), C(_e, null, Ee(me.value, (te, y) => (p(), C(_e, {
7431
7443
  key: te.type
7432
7444
  }, [
7433
7445
  z("button", {
7434
7446
  ref_for: !0,
7435
- ref: (ue) => Q(ue, h + 1),
7447
+ ref: (ue) => Q(ue, y + 1),
7436
7448
  type: "button",
7437
7449
  class: "dp__btn dp__month_year_select",
7438
7450
  tabindex: "0",
@@ -7451,11 +7463,11 @@ const Su = ({
7451
7463
  ], 64))
7452
7464
  ], 40, kd),
7453
7465
  Oe(rt, {
7454
- name: c(g)(te.showSelectionGrid),
7466
+ name: c(h)(te.showSelectionGrid),
7455
7467
  css: c(f)
7456
7468
  }, {
7457
7469
  default: ve(() => [
7458
- te.showSelectionGrid ? (p(), be(Ta, {
7470
+ te.showSelectionGrid ? (p(), be(Da, {
7459
7471
  key: 0,
7460
7472
  items: te.items,
7461
7473
  "arrow-navigation": B.arrowNavigation,
@@ -7491,7 +7503,7 @@ const Su = ({
7491
7503
  B.$slots[`${te.type}-overlay`] ? {
7492
7504
  name: "overlay",
7493
7505
  fn: ve(() => [
7494
- ne(B.$slots, `${te.type}-overlay`, Fe({ ref_for: !0 }, oe.value(te.type)))
7506
+ ne(B.$slots, `${te.type}-overlay`, Ie({ ref_for: !0 }, oe.value(te.type)))
7495
7507
  ]),
7496
7508
  key: "1"
7497
7509
  } : void 0,
@@ -7541,7 +7553,7 @@ const Su = ({
7541
7553
  ]);
7542
7554
  };
7543
7555
  }
7544
- }), Dd = ["aria-label"], Td = {
7556
+ }), Td = ["aria-label"], Dd = {
7545
7557
  class: "dp__calendar_header",
7546
7558
  role: "row"
7547
7559
  }, Pd = {
@@ -7552,7 +7564,7 @@ const Su = ({
7552
7564
  key: 0,
7553
7565
  role: "gridcell",
7554
7566
  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({
7567
+ }, Rd = { class: "dp__cell_inner" }, Od = ["id", "aria-selected", "aria-disabled", "aria-label", "data-test", "onClick", "onKeydown", "onMouseenter", "onMouseleave", "onMousedown"], Sd = /* @__PURE__ */ De({
7556
7568
  compatConfig: {
7557
7569
  MODE: 3
7558
7570
  },
@@ -7580,15 +7592,15 @@ const Su = ({
7580
7592
  defaultedConfig: s,
7581
7593
  defaultedAriaLabels: m,
7582
7594
  defaultedMultiCalendars: b,
7583
- defaultedWeekNumbers: y,
7595
+ defaultedWeekNumbers: g,
7584
7596
  defaultedMultiDates: u
7585
- } = Ie(l), g = U(null), f = U({
7597
+ } = Ne(l), h = U(null), f = U({
7586
7598
  bottom: "",
7587
7599
  left: "",
7588
7600
  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));
7601
+ }), 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
7602
  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 });
7603
+ n("mount", { cmp: "calendar", refs: T }), s.value.noSwipe || _.value && (_.value.addEventListener("touchstart", re, { passive: !1 }), _.value.addEventListener("touchend", me, { passive: !1 }), _.value.addEventListener("touchmove", B, { passive: !1 })), l.monthChangeOnScroll && _.value && _.value.addEventListener("wheel", E, { passive: !1 });
7592
7604
  });
7593
7605
  const Y = (K) => K ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", ee = (K, Z) => {
7594
7606
  if (l.transitions) {
@@ -7607,14 +7619,14 @@ const Su = ({
7607
7619
  dp__marker_dot: Z.type === "dot",
7608
7620
  dp__marker_line: Z.type === "line"
7609
7621
  };
7610
- }), I = H(() => (K) => De(K, g.value)), V = H(() => ({
7622
+ }), I = H(() => (K) => Te(K, h.value)), V = H(() => ({
7611
7623
  dp__calendar: !0,
7612
7624
  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]);
7625
+ })), se = H(() => (K) => l.hideOffsetDates ? K.current : !0), v = (K) => Dt(K, "yyyy-MM-dd"), w = async (K, Z, d) => {
7626
+ const j = Ue(T.value[Z][d]);
7615
7627
  if (j) {
7616
7628
  const { width: ce, height: F } = j.getBoundingClientRect();
7617
- g.value = K.value;
7629
+ h.value = K.value;
7618
7630
  let M = { left: `${ce / 2}px` }, X = -50;
7619
7631
  if (await mt(), O.value[0]) {
7620
7632
  const { left: he, width: Re } = O.value[0].getBoundingClientRect();
@@ -7632,7 +7644,7 @@ const Su = ({
7632
7644
  return n("select-date", K);
7633
7645
  n("set-hover-date", K), (ce = (j = K.marker) == null ? void 0 : j.tooltip) != null && ce.length && await w(K, Z, d);
7634
7646
  }, Q = (K) => {
7635
- g.value && (g.value = null, f.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", K.marker));
7647
+ h.value && (h.value = null, f.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", K.marker));
7636
7648
  }, re = (K) => {
7637
7649
  P.value.startX = K.changedTouches[0].screenX, P.value.startY = K.changedTouches[0].screenY;
7638
7650
  }, me = (K) => {
@@ -7643,13 +7655,13 @@ const Su = ({
7643
7655
  const K = l.vertical ? "Y" : "X";
7644
7656
  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
7657
  }, 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");
7658
+ K && (Array.isArray(T.value[Z]) ? T.value[Z][d] = K : T.value[Z] = [K]), l.arrowNavigation && r(T.value, "calendar");
7647
7659
  }, E = (K) => {
7648
7660
  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) => {
7661
+ }, 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
7662
  const Z = K[0];
7651
- return y.value.hideOnOffsetDates ? K.some((d) => d.current) ? le(Z) : "" : le(Z);
7652
- }, h = (K, Z) => {
7663
+ return g.value.hideOnOffsetDates ? K.some((d) => d.current) ? le(Z) : "" : le(Z);
7664
+ }, y = (K, Z) => {
7653
7665
  u.value.enabled || (Yt(K, s.value), n("select-date", Z));
7654
7666
  }, ue = (K) => {
7655
7667
  Yt(K, s.value);
@@ -7668,7 +7680,7 @@ const Su = ({
7668
7680
  class: ye(oe.value),
7669
7681
  "aria-label": (d = c(m)) == null ? void 0 : d.calendarWrap
7670
7682
  }, [
7671
- z("div", Td, [
7683
+ z("div", Dd, [
7672
7684
  K.weekNumbers ? (p(), C("div", Pd, ke(K.weekNumName), 1)) : N("", !0),
7673
7685
  (p(!0), C(_e, null, Ee(k.value, (j, ce) => {
7674
7686
  var F, M;
@@ -7727,7 +7739,7 @@ const Su = ({
7727
7739
  "aria-label": (Re = (he = c(m)) == null ? void 0 : he.day) == null ? void 0 : Re.call(he, M),
7728
7740
  tabindex: "0",
7729
7741
  "data-test": M.value,
7730
- onClick: Dt((ie) => h(ie, M), ["prevent"]),
7742
+ onClick: Tt((ie) => y(ie, M), ["prevent"]),
7731
7743
  onKeydown: (ie) => c(st)(ie, () => K.$emit("select-date", M)),
7732
7744
  onMouseenter: (ie) => $(M, F, X),
7733
7745
  onMouseleave: (ie) => Q(M),
@@ -7802,37 +7814,37 @@ const Su = ({
7802
7814
  }),
7803
7815
  _: 3
7804
7816
  }, 8, ["name", "css"])
7805
- ], 10, Dd)
7817
+ ], 10, Td)
7806
7818
  ], 2);
7807
7819
  };
7808
7820
  }
7809
7821
  }), 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), {
7822
+ const l = U([]), r = U(/* @__PURE__ */ new Date()), o = U(), { modelValue: s, calendars: m, time: b, today: g } = Ta(e, a), {
7811
7823
  defaultedMultiCalendars: u,
7812
- defaultedStartTime: g,
7824
+ defaultedStartTime: h,
7813
7825
  defaultedRange: f,
7814
- defaultedConfig: D,
7826
+ defaultedConfig: T,
7815
7827
  defaultedTz: _,
7816
7828
  propDates: W,
7817
7829
  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(
7830
+ } = 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
7831
  () => (A) => m.value[A] ? m.value[A].month : 0
7820
7832
  ), V = H(
7821
7833
  () => (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) => {
7834
+ ), se = (A) => !T.value.keepViewOnOffsetClick || A ? !0 : !o.value, v = (A, D, J, ae = !1) => {
7823
7835
  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);
7836
+ 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
7837
  }, w = () => {
7826
7838
  e.autoApply && a("select-date");
7827
7839
  };
7828
7840
  lt(
7829
7841
  s,
7830
- (A, T) => {
7831
- JSON.stringify(A) !== JSON.stringify(T) && re();
7842
+ (A, D) => {
7843
+ JSON.stringify(A) !== JSON.stringify(D) && re();
7832
7844
  },
7833
7845
  { deep: !0 }
7834
7846
  ), qe(() => {
7835
- e.shadow || (s.value || (K(), g.value && ee(g.value)), re(!0), e.focusStartDate && e.startDate && K());
7847
+ e.shadow || (s.value || (K(), h.value && ee(h.value)), re(!0), e.focusStartDate && e.startDate && K());
7836
7848
  });
7837
7849
  const $ = H(() => {
7838
7850
  var A;
@@ -7844,104 +7856,104 @@ const Su = ({
7844
7856
  return Array.isArray(s.value) ? (l.value = s.value, te(A)) : L(s.value, A);
7845
7857
  if (u.value.count && A && !e.startDate)
7846
7858
  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()))
7859
+ }, me = () => Array.isArray(s.value) && f.value.enabled ? Me(s.value[0]) === Me(s.value[1] ?? s.value[0]) : !1, B = (A, D = !1) => {
7860
+ if ((!u.value.count || !u.value.static || D) && v(0, Me(A), we(A)), u.value.count && (!u.value.solo || !s.value || me()))
7849
7861
  for (let J = 1; J < u.value.count; J++) {
7850
7862
  const ae = Se(q(), { month: I.value(J - 1), year: V.value(J - 1) }), Ce = ul(ae, { months: 1 });
7851
7863
  m.value[J] = { month: Me(Ce), year: we(Ce) };
7852
7864
  }
7853
- }, L = (A, T) => {
7854
- B(A), Y("hours", Ct(A)), Y("minutes", Lt(A)), Y("seconds", na(A)), u.value.count && T && ge();
7865
+ }, L = (A, D) => {
7866
+ B(A), Y("hours", Ct(A)), Y("minutes", Lt(A)), Y("seconds", na(A)), u.value.count && D && ge();
7855
7867
  }, i = (A) => {
7856
7868
  if (u.value.count) {
7857
7869
  if (u.value.solo)
7858
7870
  return 0;
7859
- const T = Me(A[0]), J = Me(A[1]);
7860
- return Math.abs(J - T) < u.value.count ? 0 : 1;
7871
+ const D = Me(A[0]), J = Me(A[1]);
7872
+ return Math.abs(J - D) < u.value.count ? 0 : 1;
7861
7873
  }
7862
7874
  return 1;
7863
- }, E = (A, T) => {
7864
- A[1] && f.value.showLastInRange ? B(A[i(A)], T) : B(A[0], T);
7875
+ }, E = (A, D) => {
7876
+ A[1] && f.value.showLastInRange ? B(A[i(A)], D) : B(A[0], D);
7865
7877
  const J = (ae, Ce) => [
7866
7878
  ae(A[0]),
7867
7879
  A[1] ? ae(A[1]) : b[Ce][1]
7868
7880
  ];
7869
7881
  Y("hours", J(Ct, "hours")), Y("minutes", J(Lt, "minutes")), Y("seconds", J(na, "seconds"));
7870
- }, le = (A, T) => {
7882
+ }, le = (A, D) => {
7871
7883
  if ((f.value.enabled || e.weekPicker) && !G.value.enabled)
7872
- return E(A, T);
7873
- if (G.value.enabled && T) {
7884
+ return E(A, D);
7885
+ if (G.value.enabled && D) {
7874
7886
  const J = A[A.length - 1];
7875
- return L(J, T);
7887
+ return L(J, D);
7876
7888
  }
7877
7889
  }, 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());
7890
+ const D = s.value;
7891
+ le(D, A), u.value.count && u.value.solo && ge();
7892
+ }, y = (A, D) => {
7893
+ const J = Se(q(), { month: I.value(D), year: V.value(D) }), ae = A < 0 ? yt(J, 1) : ra(J, 1);
7894
+ 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
7895
  }, 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));
7896
+ for (let D = A - 1; D >= 0; D--) {
7897
+ const J = ra(Se(q(), { month: I.value(D + 1), year: V.value(D + 1) }), 1);
7898
+ v(D, Me(J), we(J));
7887
7899
  }
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));
7900
+ for (let D = A + 1; D <= u.value.count - 1; D++) {
7901
+ const J = yt(Se(q(), { month: I.value(D - 1), year: V.value(D - 1) }), 1);
7902
+ v(D, Me(J), we(J));
7891
7903
  }
7892
7904
  }, ge = () => {
7893
7905
  if (Array.isArray(s.value) && s.value.length === 2) {
7894
7906
  const A = q(
7895
7907
  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));
7908
+ ), [D, J] = [Me(s.value[0]), we(s.value[0])], [ae, Ce] = [Me(s.value[1]), we(s.value[1])];
7909
+ (D !== ae || D === ae && J !== Ce) && u.value.solo && v(1, Me(A), we(A));
7898
7910
  } else
7899
7911
  s.value && !Array.isArray(s.value) && (v(0, Me(s.value), we(s.value)), B(q()));
7900
7912
  }, K = () => {
7901
7913
  e.startDate && (v(0, Me(q(e.startDate)), we(q(e.startDate))), u.value.count && ue(0));
7902
- }, Z = (A, T) => {
7914
+ }, Z = (A, D) => {
7903
7915
  if (e.monthChangeOnScroll) {
7904
7916
  const J = (/* @__PURE__ */ new Date()).getTime() - r.value.getTime(), ae = Math.abs(A.deltaY);
7905
7917
  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));
7918
+ 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
7919
  }
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);
7920
+ }, d = (A, D, J = !1) => {
7921
+ e.monthChangeOnArrows && e.vertical === J && j(A, D);
7922
+ }, j = (A, D) => {
7923
+ y(A === "right" ? -1 : 1, D);
7912
7924
  }, ce = (A) => {
7913
7925
  if (W.value.markers)
7914
7926
  return Ea(A.value, W.value.markers);
7915
- }, F = (A, T) => {
7927
+ }, F = (A, D) => {
7916
7928
  switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
7917
7929
  case "prepend":
7918
7930
  return [!0, !1];
7919
7931
  case "center":
7920
7932
  return [A == 0, !0];
7921
7933
  case "fair":
7922
- return [A == 0 || T > A, !0];
7934
+ return [A == 0 || D > A, !0];
7923
7935
  case "append":
7924
7936
  return [!1, !1];
7925
7937
  default:
7926
7938
  return [!1, !1];
7927
7939
  }
7928
- }, M = (A, T, J, ae) => {
7940
+ }, M = (A, D, J, ae) => {
7929
7941
  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);
7942
+ const Ce = 6 - A.length, Je = (D.getDay() + 7 - ae) % 7, At = 6 - (J.getDay() + 7 - ae) % 7, [ca, xa] = F(Je, At);
7931
7943
  for (let ma = 1; ma <= Ce; ma++)
7932
7944
  if (xa ? !!(ma % 2) == ca : ca) {
7933
- const Rt = A[0].days[0], Ja = X(ft(Rt.value, -7), Me(T));
7945
+ const Rt = A[0].days[0], Ja = X(ft(Rt.value, -7), Me(D));
7934
7946
  A.unshift({ days: Ja });
7935
7947
  } else {
7936
- const Rt = A[A.length - 1], Ja = Rt.days[Rt.days.length - 1], Xl = X(ft(Ja.value, 1), Me(T));
7948
+ const Rt = A[A.length - 1], Ja = Rt.days[Rt.days.length - 1], Xl = X(ft(Ja.value, 1), Me(D));
7937
7949
  A.push({ days: Xl });
7938
7950
  }
7939
7951
  }
7940
7952
  return A;
7941
- }, X = (A, T) => {
7953
+ }, X = (A, D) => {
7942
7954
  const J = q(A), ae = [];
7943
7955
  for (let Ce = 0; Ce < 7; Ce++) {
7944
- const Je = ft(J, Ce), At = Me(Je) !== T;
7956
+ const Je = ft(J, Ce), At = Me(Je) !== D;
7945
7957
  ae.push({
7946
7958
  text: e.hideOffsetDates && At ? "" : Je.getDate(),
7947
7959
  value: Je,
@@ -7950,11 +7962,11 @@ const Su = ({
7950
7962
  });
7951
7963
  }
7952
7964
  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) => {
7965
+ }, he = (A, D) => {
7966
+ 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
7967
  const ma = X(xa, A);
7956
7968
  if (J.push({ days: ma }), !J[J.length - 1].days.some(
7957
- (Rt) => De(ct(Rt.value), ct(Ce))
7969
+ (Rt) => Te(ct(Rt.value), ct(Ce))
7958
7970
  )) {
7959
7971
  const Rt = ft(xa, 7);
7960
7972
  ca(Rt);
@@ -7962,21 +7974,21 @@ const Su = ({
7962
7974
  };
7963
7975
  return ca(At), M(J, ae, Ce, Je);
7964
7976
  }, 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(() => {
7977
+ const D = Bt(q(A.value), b.hours, b.minutes, it());
7978
+ a("date-update", D), G.value.enabled ? Yn(D, s, G.value.limit) : s.value = D, n(), mt().then(() => {
7967
7979
  Q();
7968
7980
  });
7969
- }, Pe = (A) => f.value.noDisabledRange ? Il(l.value[0], A).some((T) => O(T)) : !1, ie = () => {
7981
+ }, Pe = (A) => f.value.noDisabledRange ? Il(l.value[0], A).some((D) => O(D)) : !1, ie = () => {
7970
7982
  l.value = s.value ? s.value.slice() : [], l.value.length === 2 && !(f.value.fixedStart || f.value.fixedEnd) && (l.value = []);
7971
- }, wt = (A, T) => {
7983
+ }, wt = (A, D) => {
7972
7984
  const J = [
7973
7985
  q(A.value),
7974
7986
  ft(q(A.value), +f.value.autoRange)
7975
7987
  ];
7976
- R(J) ? (T && vt(A.value), l.value = J) : a("invalid-date", A.value);
7988
+ R(J) ? (D && vt(A.value), l.value = J) : a("invalid-date", A.value);
7977
7989
  }, vt = (A) => {
7978
- const T = Me(q(A)), J = we(q(A));
7979
- if (v(0, T, J), u.value.count > 0)
7990
+ const D = Me(q(A)), J = we(q(A));
7991
+ if (v(0, D, J), u.value.count > 0)
7980
7992
  for (let ae = 1; ae < u.value.count; ae++) {
7981
7993
  const Ce = du(
7982
7994
  Se(q(A), { year: I.value(ae - 1), month: V.value(ae - 1) })
@@ -7987,12 +7999,12 @@ const Su = ({
7987
7999
  if (Pe(A.value) || !x(A.value, s.value, f.value.fixedStart ? 0 : 1))
7988
8000
  return a("invalid-date", A.value);
7989
8001
  l.value = ql(q(A.value), s, a, f);
7990
- }, ua = (A, T) => {
8002
+ }, ua = (A, D) => {
7991
8003
  if (ie(), f.value.autoRange)
7992
- return wt(A, T);
8004
+ return wt(A, D);
7993
8005
  if (f.value.fixedStart || f.value.fixedEnd)
7994
8006
  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]));
8007
+ 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
8008
  }, it = (A = !0) => e.enableSeconds ? Array.isArray(b.seconds) ? A ? b.seconds[0] : b.seconds[1] : b.seconds : 0, da = (A) => {
7997
8009
  l.value[A] = Bt(
7998
8010
  l.value[A],
@@ -8001,37 +8013,37 @@ const Su = ({
8001
8013
  it(A !== 1)
8002
8014
  );
8003
8015
  }, 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]));
8016
+ var A, D;
8017
+ 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
8018
  }, Pa = () => {
8007
8019
  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) => {
8020
+ }, ja = (A, D = !1) => {
8009
8021
  if (O(A.value) || !A.current && e.hideOffsetDates)
8010
8022
  return a("invalid-date", A.value);
8011
8023
  if (o.value = JSON.parse(JSON.stringify(A)), !f.value.enabled)
8012
8024
  return Re(A);
8013
- nl(b.hours) && nl(b.minutes) && !G.value.enabled && (ua(A, T), Pa());
8014
- }, qa = (A, T) => {
8025
+ nl(b.hours) && nl(b.minutes) && !G.value.enabled && (ua(A, D), Pa());
8026
+ }, qa = (A, D) => {
8015
8027
  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);
8028
+ 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
8029
  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) => {
8030
+ !D.fromNav && (ae === et.month || ae === et.year) && n();
8031
+ }, Ua = (A, D) => {
8020
8032
  jl({
8021
8033
  value: A,
8022
8034
  modelValue: s,
8023
8035
  range: f.value.enabled,
8024
- timezone: T ? void 0 : _.value.timezone
8036
+ timezone: D ? void 0 : _.value.timezone
8025
8037
  }), w(), e.multiCalendars && mt().then(() => re(!0));
8026
8038
  }, 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();
8039
+ f.value.enabled ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = Fe(q(), s.value[0]) ? [q(), s.value[0]] : [s.value[0], q()] : s.value = [q()] : s.value = q(), w();
8028
8040
  }, Qa = () => {
8029
8041
  if (Array.isArray(s.value))
8030
8042
  if (G.value.enabled) {
8031
8043
  const A = Xa();
8032
8044
  s.value[s.value.length - 1] = k(A);
8033
8045
  } else
8034
- s.value = s.value.map((A, T) => A && k(A, T));
8046
+ s.value = s.value.map((A, D) => A && k(A, D));
8035
8047
  else
8036
8048
  s.value = k(s.value);
8037
8049
  a("time-update");
@@ -8043,7 +8055,7 @@ const Su = ({
8043
8055
  year: V,
8044
8056
  time: b,
8045
8057
  disabledTimesConfig: fe,
8046
- today: y,
8058
+ today: g,
8047
8059
  validateTime: oe,
8048
8060
  getCalendarDays: he,
8049
8061
  getMarker: ce,
@@ -8054,11 +8066,11 @@ const Su = ({
8054
8066
  updateMonthYear: qa,
8055
8067
  presetDate: Ua,
8056
8068
  selectCurrentDate: Ga,
8057
- updateTime: (A, T = !0, J = !1) => {
8058
- S(A, T, J, Qa);
8069
+ updateTime: (A, D = !0, J = !1) => {
8070
+ S(A, D, J, Qa);
8059
8071
  }
8060
8072
  };
8061
- }, Yd = { key: 0 }, Bd = /* @__PURE__ */ Te({
8073
+ }, Yd = { key: 0 }, Bd = /* @__PURE__ */ De({
8062
8074
  __name: "DatePicker",
8063
8075
  props: {
8064
8076
  ...bt
@@ -8094,11 +8106,11 @@ const Su = ({
8094
8106
  year: s,
8095
8107
  modelValue: m,
8096
8108
  time: b,
8097
- disabledTimesConfig: y,
8109
+ disabledTimesConfig: g,
8098
8110
  today: u,
8099
- validateTime: g,
8111
+ validateTime: h,
8100
8112
  getCalendarDays: f,
8101
- getMarker: D,
8113
+ getMarker: T,
8102
8114
  handleArrow: _,
8103
8115
  handleScroll: W,
8104
8116
  handleSwipe: G,
@@ -8107,7 +8119,7 @@ const Su = ({
8107
8119
  presetDate: R,
8108
8120
  selectCurrentDate: x,
8109
8121
  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) => {
8122
+ } = 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
8123
  l.shadow || n("mount", Z);
8112
8124
  };
8113
8125
  lt(
@@ -8121,7 +8133,7 @@ const Su = ({
8121
8133
  );
8122
8134
  const re = H(() => (Z) => f(o.value(Z), s.value(Z)).map((d) => ({
8123
8135
  ...d,
8124
- days: d.days.map((j) => (j.marker = D(j), j.classData = ee(j), j))
8136
+ days: d.days.map((j) => (j.marker = T(j), j.classData = ee(j), j))
8125
8137
  })));
8126
8138
  function me(Z) {
8127
8139
  var d;
@@ -8151,7 +8163,7 @@ const Su = ({
8151
8163
  classData: {}
8152
8164
  });
8153
8165
  }
8154
- }, h = (Z) => {
8166
+ }, y = (Z) => {
8155
8167
  var d;
8156
8168
  (d = I.value[0]) == null || d.handleMonthYearChange(Z, !0);
8157
8169
  }, ue = (Z) => {
@@ -8180,7 +8192,7 @@ const Su = ({
8180
8192
  selectDate: P,
8181
8193
  presetDate: R
8182
8194
  }),
8183
- changeMonth: h,
8195
+ changeMonth: y,
8184
8196
  changeYear: ue,
8185
8197
  selectWeekDate: te
8186
8198
  }), (Z, d) => (p(), C(_e, null, [
@@ -8189,7 +8201,7 @@ const Su = ({
8189
8201
  collapse: Z.collapse
8190
8202
  }, {
8191
8203
  default: ve(({ instance: j, index: ce }) => [
8192
- Z.disableMonthYearSelect ? N("", !0) : (p(), be(Md, Fe({
8204
+ Z.disableMonthYearSelect ? N("", !0) : (p(), be(Md, Ie({
8193
8205
  key: 0,
8194
8206
  ref: (F) => {
8195
8207
  F && (I.value[ce] = F);
@@ -8213,7 +8225,7 @@ const Su = ({
8213
8225
  ])
8214
8226
  }))
8215
8227
  ]), 1040, ["months", "years", "month", "year", "instance", "onUpdateMonthYear"])),
8216
- Oe(Sd, Fe({
8228
+ Oe(Sd, Ie({
8217
8229
  ref: (F) => {
8218
8230
  F && (V.value[ce] = F);
8219
8231
  },
@@ -8243,7 +8255,7 @@ const Su = ({
8243
8255
  _: 3
8244
8256
  }, 8, ["multi-calendars", "collapse"]),
8245
8257
  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({
8258
+ Z.$slots["time-picker"] ? ne(Z.$slots, "time-picker", Qe(Ie({ key: 0 }, { time: c(b), updateTime: c(S) }))) : (p(), be(Gl, Ie({
8247
8259
  key: 1,
8248
8260
  ref_key: "timePickerRef",
8249
8261
  ref: se
@@ -8252,8 +8264,8 @@ const Su = ({
8252
8264
  minutes: c(b).minutes,
8253
8265
  seconds: c(b).seconds,
8254
8266
  "internal-model-value": Z.internalModelValue,
8255
- "disabled-times-config": c(y),
8256
- "validate-time": c(g),
8267
+ "disabled-times-config": c(g),
8268
+ "validate-time": c(h),
8257
8269
  onMount: d[8] || (d[8] = (j) => Q(c(Ut).timePicker)),
8258
8270
  "onUpdate:hours": d[9] || (d[9] = (j) => c(S)(j)),
8259
8271
  "onUpdate:minutes": d[10] || (d[10] = (j) => c(S)(j, !1)),
@@ -8282,22 +8294,22 @@ const Su = ({
8282
8294
  propDates: s,
8283
8295
  defaultedFilters: m,
8284
8296
  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,
8297
+ } = Ne(e), { modelValue: g, year: u, month: h, calendars: f } = Ta(e, a), { isDisabled: T } = Ft(e), { selectYear: _, groupedYears: W, showYearPicker: G, isDisabled: P, toggleYearPicker: O, handleYearSelect: R, handleYear: x } = Ul({
8298
+ modelValue: g,
8287
8299
  multiCalendars: n,
8288
8300
  highlight: r,
8289
8301
  calendars: f,
8290
8302
  propDates: s,
8291
- month: g,
8303
+ month: h,
8292
8304
  year: u,
8293
8305
  filters: m,
8294
8306
  props: e,
8295
8307
  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) => {
8308
+ }), 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
8309
  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;
8310
+ if (Array.isArray(g.value)) {
8311
+ const w = Te(v, g.value[0]) || Te(v, g.value[1]);
8312
+ return Ia(g.value, t.value, v) && !w;
8301
8313
  }
8302
8314
  return !1;
8303
8315
  }
@@ -8308,7 +8320,7 @@ const Su = ({
8308
8320
  start: gn(w),
8309
8321
  end: hl(w)
8310
8322
  }).map(($) => {
8311
- const Q = zt($), re = zn($), me = D($), B = Y(Q), L = oe(Q);
8323
+ const Q = zt($), re = zn($), me = T($), B = Y(Q), L = oe(Q);
8312
8324
  return {
8313
8325
  text: S(Q, re),
8314
8326
  value: Q,
@@ -8319,11 +8331,11 @@ const Su = ({
8319
8331
  };
8320
8332
  });
8321
8333
  }), I = (v) => {
8322
- Yn(v, y, b.value.limit), a("auto-apply", !0);
8334
+ Yn(v, g, b.value.limit), a("auto-apply", !0);
8323
8335
  }, V = (v) => {
8324
- y.value = Bn(y, v, a), Ha(y.value, a, e.autoApply, e.modelAuto);
8336
+ g.value = Bn(g, v, a), Ha(g.value, a, e.autoApply, e.modelAuto);
8325
8337
  }, se = (v) => {
8326
- y.value = v, a("auto-apply");
8338
+ g.value = v, a("auto-apply");
8327
8339
  };
8328
8340
  return {
8329
8341
  defaultedConfig: l,
@@ -8333,7 +8345,7 @@ const Su = ({
8333
8345
  isDisabled: P,
8334
8346
  quarters: fe,
8335
8347
  showYearPicker: G,
8336
- modelValue: y,
8348
+ modelValue: g,
8337
8349
  setHoverDate: (v) => {
8338
8350
  t.value = v;
8339
8351
  },
@@ -8346,7 +8358,7 @@ const Su = ({
8346
8358
  handleYearSelect: R,
8347
8359
  handleYear: x
8348
8360
  };
8349
- }, Id = { class: "dp--quarter-items" }, Nd = ["data-test", "disabled", "onClick", "onMouseover"], Fd = /* @__PURE__ */ Te({
8361
+ }, Id = { class: "dp--quarter-items" }, Nd = ["data-test", "disabled", "onClick", "onMouseover"], Fd = /* @__PURE__ */ De({
8350
8362
  compatConfig: {
8351
8363
  MODE: 3
8352
8364
  },
@@ -8369,11 +8381,11 @@ const Su = ({
8369
8381
  defaultedMultiCalendars: s,
8370
8382
  defaultedConfig: m,
8371
8383
  groupedYears: b,
8372
- year: y,
8384
+ year: g,
8373
8385
  isDisabled: u,
8374
- quarters: g,
8386
+ quarters: h,
8375
8387
  modelValue: f,
8376
- showYearPicker: D,
8388
+ showYearPicker: T,
8377
8389
  setHoverDate: _,
8378
8390
  selectQuarter: W,
8379
8391
  toggleYearPicker: G,
@@ -8382,7 +8394,7 @@ const Su = ({
8382
8394
  } = Ld(l, n);
8383
8395
  return a({ getSidebarProps: () => ({
8384
8396
  modelValue: f,
8385
- year: y,
8397
+ year: g,
8386
8398
  selectQuarter: W,
8387
8399
  handleYearSelect: P,
8388
8400
  handleYear: O
@@ -8401,11 +8413,11 @@ const Su = ({
8401
8413
  value: R.internalModelValue
8402
8414
  }) : N("", !0),
8403
8415
  z("div", null, [
8404
- Oe(zl, Fe(R.$props, {
8416
+ Oe(zl, Ie(R.$props, {
8405
8417
  items: c(b)(S),
8406
8418
  instance: S,
8407
- "show-year-picker": c(D)[S],
8408
- year: c(y)(S),
8419
+ "show-year-picker": c(T)[S],
8420
+ year: c(g)(S),
8409
8421
  "is-disabled": (k) => c(u)(S, k),
8410
8422
  onHandleYear: (k) => c(O)(S, k),
8411
8423
  onYearSelect: (k) => c(P)(k, S),
@@ -8420,7 +8432,7 @@ const Su = ({
8420
8432
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
8421
8433
  ]),
8422
8434
  z("div", Id, [
8423
- (p(!0), C(_e, null, Ee(c(g)(S), (k, Y) => (p(), C("div", { key: Y }, [
8435
+ (p(!0), C(_e, null, Ee(c(h)(S), (k, Y) => (p(), C("div", { key: Y }, [
8424
8436
  z("button", {
8425
8437
  type: "button",
8426
8438
  class: ye(["dp--qr-btn", {
@@ -8463,7 +8475,7 @@ const Su = ({
8463
8475
  }, Gd = {
8464
8476
  key: 3,
8465
8477
  class: "dp__action_extra"
8466
- }, ll = /* @__PURE__ */ Te({
8478
+ }, ll = /* @__PURE__ */ De({
8467
8479
  compatConfig: {
8468
8480
  MODE: 3
8469
8481
  },
@@ -8510,12 +8522,12 @@ const Su = ({
8510
8522
  noOverlayFocus: l.noOverlayFocus,
8511
8523
  menuWrapRef: r.value
8512
8524
  };
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);
8525
+ }), { setMenuFocused: s, setShiftKey: m, control: b } = Wl(), g = It(), { defaultedTextInput: u, defaultedInline: h, defaultedConfig: f } = Ne(l), T = U(null), _ = U(0), W = U(null), G = U(!1), P = U(null);
8514
8526
  qe(() => {
8515
8527
  if (!l.shadow) {
8516
8528
  G.value = !0, O(), window.addEventListener("resize", O);
8517
8529
  const M = Ue(r);
8518
- if (M && !u.value.enabled && !g.value.enabled && (s(!0), se()), M) {
8530
+ if (M && !u.value.enabled && !h.value.enabled && (s(!0), se()), M) {
8519
8531
  const X = (he) => {
8520
8532
  f.value.allowPreventDefault && he.preventDefault(), Yt(he, f.value, !0);
8521
8533
  };
@@ -8542,15 +8554,15 @@ const Su = ({
8542
8554
  return ((M = P.value) == null ? void 0 : M.getSidebarProps()) || {};
8543
8555
  }), w = () => {
8544
8556
  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(() => ({
8557
+ }, $ = 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
8558
  dp__menu_disabled: l.disabled,
8547
8559
  dp__menu_readonly: l.readonly,
8548
8560
  "dp-menu-loading": l.loading
8549
8561
  })), B = H(
8550
8562
  () => ({
8551
8563
  dp__menu: !0,
8552
- dp__menu_index: !g.value.enabled,
8553
- dp__relative: g.value.enabled,
8564
+ dp__menu_index: !h.value.enabled,
8565
+ dp__relative: h.value.enabled,
8554
8566
  [l.menuClassName]: !!l.menuClassName
8555
8567
  })
8556
8568
  ), L = (M) => {
@@ -8573,12 +8585,12 @@ const Su = ({
8573
8585
  m(M.shiftKey), !l.disableMonthYearSelect && M.code === Be.tab && M.target.classList.contains("dp__menu") && b.value.shiftKeyInMenu && (M.preventDefault(), Yt(M, f.value, !0), n("close-picker"));
8574
8586
  }, te = () => {
8575
8587
  se(), n("time-picker-close");
8576
- }, h = (M) => {
8588
+ }, y = (M) => {
8577
8589
  var X, he, Re;
8578
8590
  (X = P.value) == null || X.toggleTimePicker(!1, !1), (he = P.value) == null || he.toggleMonthPicker(!1, !1, M), (Re = P.value) == null || Re.toggleYearPicker(!1, !1, M);
8579
8591
  }, ue = (M, X = 0) => {
8580
8592
  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);
8593
+ return M === "month" ? (he = P.value) == null ? void 0 : he.toggleMonthPicker(!1, !0, X) : M === "year" ? (Re = P.value) == null ? void 0 : Re.toggleYearPicker(!1, !0, X) : M === "time" ? (Pe = P.value) == null ? void 0 : Pe.toggleTimePicker(!0, !1) : y(X);
8582
8594
  }, ge = (M, ...X) => {
8583
8595
  var he, Re;
8584
8596
  (he = P.value) != null && he[M] && ((Re = P.value) == null || Re[M](...X));
@@ -8630,13 +8642,13 @@ const Su = ({
8630
8642
  onClick: L,
8631
8643
  onKeydown: F
8632
8644
  }, [
8633
- (M.disabled || M.readonly) && c(g).enabled || M.loading ? (p(), C("div", {
8645
+ (M.disabled || M.readonly) && c(h).enabled || M.loading ? (p(), C("div", {
8634
8646
  key: 0,
8635
8647
  class: ye(me.value)
8636
8648
  }, [
8637
8649
  M.loading ? (p(), C("div", Hd, zd)) : N("", !0)
8638
8650
  ], 2)) : N("", !0),
8639
- !c(g).enabled && !M.teleportCenter ? (p(), C("div", {
8651
+ !c(h).enabled && !M.teleportCenter ? (p(), C("div", {
8640
8652
  key: 1,
8641
8653
  class: ye(re.value)
8642
8654
  }, null, 2)) : N("", !0),
@@ -8668,18 +8680,18 @@ const Su = ({
8668
8680
  style: tt(ie.style || {}),
8669
8681
  class: ye(["dp__btn dp--preset-range", { "dp--preset-range-collapsed": e.collapse }]),
8670
8682
  "data-test": ie.testId ?? void 0,
8671
- onClick: Dt((vt) => Z(ie.value, ie.noTz), ["prevent"]),
8683
+ onClick: Tt((vt) => Z(ie.value, ie.noTz), ["prevent"]),
8672
8684
  onKeydown: (vt) => c(st)(vt, () => Z(ie.value, ie.noTz), !0)
8673
8685
  }, ke(ie.label), 47, qd))
8674
8686
  ], 64))), 128))
8675
8687
  ], 2)) : N("", !0),
8676
8688
  z("div", {
8677
8689
  ref_key: "calendarWrapperRef",
8678
- ref: D,
8690
+ ref: T,
8679
8691
  class: "dp__instance_calendar",
8680
8692
  role: "document"
8681
8693
  }, [
8682
- (p(), be(La(I.value), Fe({
8694
+ (p(), be(La(I.value), Ie({
8683
8695
  ref_key: "dynCmpRef",
8684
8696
  ref: P
8685
8697
  }, o.value, {
@@ -8725,7 +8737,7 @@ const Su = ({
8725
8737
  }) : N("", !0)
8726
8738
  ])) : N("", !0)
8727
8739
  ], 6),
8728
- !M.autoApply || c(f).keepActionRow ? (p(), be(zu, Fe({
8740
+ !M.autoApply || c(f).keepActionRow ? (p(), be(zu, Ie({
8729
8741
  key: 2,
8730
8742
  "menu-mount": G.value
8731
8743
  }, o.value, {
@@ -8768,7 +8780,7 @@ const Su = ({
8768
8780
  const s = Ue(e), m = Ue(a);
8769
8781
  !s || !m || s === o.target || o.composedPath().includes(s) || o.composedPath().includes(m) || t(o);
8770
8782
  }, { passive: !0 }) : void 0;
8771
- }, Kd = /* @__PURE__ */ Te({
8783
+ }, Kd = /* @__PURE__ */ De({
8772
8784
  compatConfig: {
8773
8785
  MODE: 3
8774
8786
  },
@@ -8803,25 +8815,25 @@ const Su = ({
8803
8815
  "overlay-toggle"
8804
8816
  ],
8805
8817
  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), {
8818
+ const n = t, l = e, r = It(), o = U(!1), s = ba(l, "modelValue"), m = ba(l, "timezone"), b = U(null), g = U(null), u = U(null), h = U(!1), f = U(null), T = U(!1), _ = U(!1), W = U(!1), { setMenuFocused: G, setShiftKey: P } = Wl(), { clearArrowNav: O } = Nt(), { validateDate: R, isValidTime: x } = Ft(l), {
8807
8819
  defaultedTransitions: S,
8808
8820
  defaultedTextInput: k,
8809
8821
  defaultedInline: Y,
8810
8822
  defaultedConfig: ee,
8811
8823
  defaultedRange: oe,
8812
8824
  defaultedMultiDates: fe
8813
- } = Ie(l), { menuTransition: I, showTransition: V } = Ma(S);
8825
+ } = Ne(l), { menuTransition: I, showTransition: V } = Ma(S);
8814
8826
  qe(() => {
8815
8827
  E(l.modelValue), mt().then(() => {
8816
8828
  if (!Y.value.enabled) {
8817
- const T = me(f.value);
8818
- T == null || T.addEventListener("scroll", ce), window == null || window.addEventListener("resize", F);
8829
+ const D = me(f.value);
8830
+ D == null || D.addEventListener("scroll", ce), window == null || window.addEventListener("resize", F);
8819
8831
  }
8820
8832
  }), Y.value.enabled && (o.value = !0), window == null || window.addEventListener("keyup", M), window == null || window.addEventListener("keydown", X);
8821
8833
  }), Ba(() => {
8822
8834
  if (!Y.value.enabled) {
8823
- const T = me(f.value);
8824
- T == null || T.removeEventListener("scroll", ce), window == null || window.removeEventListener("resize", F);
8835
+ const D = me(f.value);
8836
+ D == null || D.removeEventListener("scroll", ce), window == null || window.removeEventListener("resize", F);
8825
8837
  }
8826
8838
  window == null || window.removeEventListener("keyup", M), window == null || window.removeEventListener("keydown", X);
8827
8839
  });
@@ -8835,7 +8847,7 @@ const Su = ({
8835
8847
  );
8836
8848
  const { openOnTop: w, menuStyle: $, xCorrect: Q, setMenuPosition: re, getScrollableParent: me, shadowRender: B } = Su({
8837
8849
  menuRef: b,
8838
- menuRefInner: y,
8850
+ menuRefInner: g,
8839
8851
  inputRef: u,
8840
8852
  pickerWrapperRef: f,
8841
8853
  inline: Y,
@@ -8848,8 +8860,8 @@ const Su = ({
8848
8860
  parseExternalModelValue: E,
8849
8861
  emitModelValue: le,
8850
8862
  formatInputValue: te,
8851
- checkBeforeEmit: h
8852
- } = Ru(n, l, g), ue = H(
8863
+ checkBeforeEmit: y
8864
+ } = Ru(n, l, h), ue = H(
8853
8865
  () => ({
8854
8866
  dp__main: !0,
8855
8867
  dp__theme_dark: l.dark,
@@ -8862,69 +8874,69 @@ const Su = ({
8862
8874
  to: typeof l.teleport == "boolean" ? "body" : l.teleport,
8863
8875
  disabled: !l.teleport || Y.value.enabled
8864
8876
  } : {}), 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();
8877
+ var D, J;
8878
+ return (J = (D = u.value) == null ? void 0 : D.$el) == null ? void 0 : J.getBoundingClientRect();
8867
8879
  }, ce = () => {
8868
8880
  o.value && (ee.value.closeOnScroll ? it() : re());
8869
8881
  }, F = () => {
8870
- var T;
8882
+ var D;
8871
8883
  o.value && re();
8872
- const J = (T = y.value) == null ? void 0 : T.$el.getBoundingClientRect().width;
8884
+ const J = (D = g.value) == null ? void 0 : D.$el.getBoundingClientRect().width;
8873
8885
  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;
8886
+ }, M = (D) => {
8887
+ D.key === "Tab" && !Y.value.enabled && !l.teleport && ee.value.tabOutClosesMenu && (f.value.contains(document.activeElement) || it()), _.value = D.shiftKey;
8888
+ }, X = (D) => {
8889
+ _.value = D.shiftKey;
8878
8890
  }, he = () => {
8879
8891
  !l.disabled && !l.readonly && (B(ll, l), re(!1), o.value = !0, o.value && n("open"), o.value || ua(), E(l.modelValue));
8880
8892
  }, 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();
8893
+ var D;
8894
+ 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
8895
  }, 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;
8896
+ const D = i.value;
8897
+ 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
8898
  }, ie = () => {
8887
- h() && Pe() ? (le(), it()) : n("invalid-select", i.value);
8888
- }, wt = (T) => {
8889
- vt(), le(), ee.value.closeOnAutoApply && !T && it();
8899
+ y() && Pe() ? (le(), it()) : n("invalid-select", i.value);
8900
+ }, wt = (D) => {
8901
+ vt(), le(), ee.value.closeOnAutoApply && !D && it();
8890
8902
  }, vt = () => {
8891
8903
  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));
8904
+ }, Wa = (D = !1) => {
8905
+ 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
8906
  }, ua = () => {
8895
8907
  k.value.enabled || (i.value = null);
8896
8908
  }, it = () => {
8897
8909
  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) {
8910
+ }, da = (D, J, ae = !1) => {
8911
+ if (!D) {
8900
8912
  i.value = null;
8901
8913
  return;
8902
8914
  }
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")));
8915
+ const Ce = Array.isArray(D) ? !D.some((At) => !R(At)) : R(D), Je = x(D);
8916
+ Ce && Je && (i.value = D, J && (T.value = ae, ie(), n("text-submit")));
8905
8917
  }, za = () => {
8906
8918
  l.autoApply && x(i.value) && le(), vt();
8907
- }, Pa = () => o.value ? it() : he(), ja = (T) => {
8908
- i.value = T;
8919
+ }, Pa = () => o.value ? it() : he(), ja = (D) => {
8920
+ i.value = D;
8909
8921
  }, qa = () => {
8910
- k.value.enabled && (g.value = !0, te()), n("focus");
8922
+ k.value.enabled && (h.value = !0, te()), n("focus");
8911
8923
  }, 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();
8924
+ if (k.value.enabled && (h.value = !1, E(l.modelValue), T.value)) {
8925
+ const D = ru(f.value, _.value);
8926
+ D == null || D.focus();
8915
8927
  }
8916
8928
  n("blur");
8917
- }, Ga = (T) => {
8918
- y.value && y.value.updateMonthYear(0, {
8919
- month: Jn(T.month),
8920
- year: Jn(T.year)
8929
+ }, Ga = (D) => {
8930
+ g.value && g.value.updateMonthYear(0, {
8931
+ month: Jn(D.month),
8932
+ year: Jn(D.year)
8921
8933
  });
8922
- }, Qa = (T) => {
8923
- E(T ?? l.modelValue);
8924
- }, Xa = (T, J) => {
8934
+ }, Qa = (D) => {
8935
+ E(D ?? l.modelValue);
8936
+ }, Xa = (D, J) => {
8925
8937
  var ae;
8926
- (ae = y.value) == null || ae.switchView(T, J);
8927
- }, A = (T) => ee.value.onClickOutside ? ee.value.onClickOutside(T) : it();
8938
+ (ae = g.value) == null || ae.switchView(D, J);
8939
+ }, A = (D) => ee.value.onClickOutside ? ee.value.onClickOutside(D) : it();
8928
8940
  return Zd(b, u, () => A(Pe)), a({
8929
8941
  closeMenu: it,
8930
8942
  selectDate: ie,
@@ -8939,19 +8951,19 @@ const Su = ({
8939
8951
  parseModel: Qa,
8940
8952
  switchView: Xa,
8941
8953
  toggleMenu: Pa
8942
- }), (T, J) => (p(), C("div", {
8954
+ }), (D, J) => (p(), C("div", {
8943
8955
  ref_key: "pickerWrapperRef",
8944
8956
  ref: f,
8945
8957
  class: ye(ue.value),
8946
8958
  "data-datepicker-instance": ""
8947
8959
  }, [
8948
- Oe(Vu, Fe({
8960
+ Oe(Vu, Ie({
8949
8961
  ref_key: "inputRef",
8950
8962
  ref: u,
8951
8963
  "input-value": c(L),
8952
8964
  "onUpdate:inputValue": J[0] || (J[0] = (ae) => Ra(L) ? L.value = ae : null),
8953
8965
  "is-menu-open": o.value
8954
- }, T.$props, {
8966
+ }, D.$props, {
8955
8967
  onClear: Re,
8956
8968
  onOpen: he,
8957
8969
  onSetInputDate: da,
@@ -8961,23 +8973,23 @@ const Su = ({
8961
8973
  onClose: it,
8962
8974
  onFocus: qa,
8963
8975
  onBlur: Ua,
8964
- onRealBlur: J[1] || (J[1] = (ae) => g.value = !1)
8976
+ onRealBlur: J[1] || (J[1] = (ae) => h.value = !1)
8965
8977
  }), at({ _: 2 }, [
8966
8978
  Ee(c(v), (ae, Ce) => ({
8967
8979
  name: ae,
8968
8980
  fn: ve((Je) => [
8969
- ne(T.$slots, ae, Qe(ot(Je)))
8981
+ ne(D.$slots, ae, Qe(ot(Je)))
8970
8982
  ])
8971
8983
  }))
8972
8984
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
8973
- (p(), be(La(T.teleport ? Ya : "div"), Qe(ot(K.value)), {
8985
+ (p(), be(La(D.teleport ? Ya : "div"), Qe(ot(K.value)), {
8974
8986
  default: ve(() => [
8975
8987
  Oe(rt, {
8976
8988
  name: c(I)(c(w)),
8977
8989
  css: c(V) && !c(Y).enabled
8978
8990
  }, {
8979
8991
  default: ve(() => [
8980
- o.value ? (p(), C("div", Fe({
8992
+ o.value ? (p(), C("div", Ie({
8981
8993
  key: 0,
8982
8994
  ref_key: "dpWrapMenuRef",
8983
8995
  ref: b
@@ -8985,13 +8997,13 @@ const Su = ({
8985
8997
  class: { "dp--menu-wrapper": !c(Y).enabled },
8986
8998
  style: c(Y).enabled ? void 0 : c($)
8987
8999
  }), [
8988
- Oe(ll, Fe({
9000
+ Oe(ll, Ie({
8989
9001
  ref_key: "dpMenuRef",
8990
- ref: y
8991
- }, T.$props, {
9002
+ ref: g
9003
+ }, D.$props, {
8992
9004
  "internal-model-value": c(i),
8993
9005
  "onUpdate:internalModelValue": J[2] || (J[2] = (ae) => Ra(i) ? i.value = ae : null),
8994
- class: { [ge.value]: !0, "dp--menu-wrapper": T.teleport },
9006
+ class: { [ge.value]: !0, "dp--menu-wrapper": D.teleport },
8995
9007
  "open-on-top": c(w),
8996
9008
  "no-overlay-focus": d.value,
8997
9009
  collapse: W.value,
@@ -9000,27 +9012,27 @@ const Su = ({
9000
9012
  onSelectDate: ie,
9001
9013
  onAutoApply: Wa,
9002
9014
  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)),
9015
+ onFlowStep: J[3] || (J[3] = (ae) => D.$emit("flow-step", ae)),
9016
+ onUpdateMonthYear: J[4] || (J[4] = (ae) => D.$emit("update-month-year", ae)),
9017
+ onInvalidSelect: J[5] || (J[5] = (ae) => D.$emit("invalid-select", c(i))),
9018
+ onAutoApplyInvalid: J[6] || (J[6] = (ae) => D.$emit("invalid-select", ae)),
9019
+ onInvalidFixedRange: J[7] || (J[7] = (ae) => D.$emit("invalid-fixed-range", ae)),
9008
9020
  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))
9021
+ onTooltipOpen: J[8] || (J[8] = (ae) => D.$emit("tooltip-open", ae)),
9022
+ onTooltipClose: J[9] || (J[9] = (ae) => D.$emit("tooltip-close", ae)),
9023
+ onTimePickerOpen: J[10] || (J[10] = (ae) => D.$emit("time-picker-open", ae)),
9024
+ onTimePickerClose: J[11] || (J[11] = (ae) => D.$emit("time-picker-close", ae)),
9025
+ onAmPmChange: J[12] || (J[12] = (ae) => D.$emit("am-pm-change", ae)),
9026
+ onRangeStart: J[13] || (J[13] = (ae) => D.$emit("range-start", ae)),
9027
+ onRangeEnd: J[14] || (J[14] = (ae) => D.$emit("range-end", ae)),
9028
+ onDateUpdate: J[15] || (J[15] = (ae) => D.$emit("date-update", ae)),
9029
+ onInvalidDate: J[16] || (J[16] = (ae) => D.$emit("invalid-date", ae)),
9030
+ onOverlayToggle: J[17] || (J[17] = (ae) => D.$emit("overlay-toggle", ae))
9019
9031
  }), at({ _: 2 }, [
9020
9032
  Ee(c(se), (ae, Ce) => ({
9021
9033
  name: ae,
9022
9034
  fn: ve((Je) => [
9023
- ne(T.$slots, ae, Qe(ot({ ...Je })))
9035
+ ne(D.$slots, ae, Qe(ot({ ...Je })))
9024
9036
  ])
9025
9037
  }))
9026
9038
  ]), 1040, ["internal-model-value", "class", "open-on-top", "no-overlay-focus", "collapse", "onRecalculatePosition"])
@@ -9045,7 +9057,7 @@ const Su = ({
9045
9057
  Object.entries(ec).forEach(([e, a]) => {
9046
9058
  e !== "default" && (Ln[e] = a);
9047
9059
  });
9048
- const tc = { class: "rm-datepicker" }, Dc = /* @__PURE__ */ Te({
9060
+ const tc = { class: "rm-datepicker" }, Tc = /* @__PURE__ */ De({
9049
9061
  __name: "RMDatepicker",
9050
9062
  props: {
9051
9063
  label: { default: "" },
@@ -9082,11 +9094,11 @@ const tc = { class: "rm-datepicker" }, Dc = /* @__PURE__ */ Te({
9082
9094
  Xe(z("p", { class: "rm-datepicker__label" }, ke(m.label), 513), [
9083
9095
  [jt, m.label]
9084
9096
  ]),
9085
- Oe(c(Ln), Fe({
9097
+ Oe(c(Ln), Ie({
9086
9098
  ref_key: "pickerRef",
9087
9099
  ref: r,
9088
9100
  modelValue: l.value,
9089
- "onUpdate:modelValue": b[0] || (b[0] = (y) => l.value = y),
9101
+ "onUpdate:modelValue": b[0] || (b[0] = (g) => l.value = g),
9090
9102
  "enable-time-picker": !1,
9091
9103
  "auto-apply": "",
9092
9104
  clearable: !!m.currentDate,
@@ -9094,14 +9106,14 @@ const tc = { class: "rm-datepicker" }, Dc = /* @__PURE__ */ Te({
9094
9106
  "disabled-dates": m.disabledDates
9095
9107
  }, o.value, {
9096
9108
  "onUpdate:modelValue": s,
9097
- onCleared: b[1] || (b[1] = (y) => n("delete"))
9109
+ onCleared: b[1] || (b[1] = (g) => n("delete"))
9098
9110
  }), null, 16, ["modelValue", "clearable", "allowed-dates", "disabled-dates"])
9099
9111
  ]));
9100
9112
  }
9101
9113
  }), ac = {
9102
9114
  key: 0,
9103
9115
  class: "rm-tooltip__pop"
9104
- }, nc = { class: "rm-tooltip__pop-label" }, Tc = /* @__PURE__ */ Te({
9116
+ }, nc = { class: "rm-tooltip__pop-label" }, Dc = /* @__PURE__ */ De({
9105
9117
  __name: "RMTooltip",
9106
9118
  props: {
9107
9119
  label: { default: "" },
@@ -9138,7 +9150,7 @@ const tc = { class: "rm-datepicker" }, Dc = /* @__PURE__ */ Te({
9138
9150
  ])) : N("", !0)
9139
9151
  ], 34));
9140
9152
  }
9141
- }), lc = { class: "rm-avatar__overlay" }, rc = ["src"], Pc = /* @__PURE__ */ Te({
9153
+ }), lc = { class: "rm-avatar__overlay" }, rc = ["src"], Pc = /* @__PURE__ */ De({
9142
9154
  __name: "RMAvatar",
9143
9155
  props: {
9144
9156
  label: { default: "Anon" },
@@ -9187,7 +9199,7 @@ const tc = { class: "rm-datepicker" }, Dc = /* @__PURE__ */ Te({
9187
9199
  ], -1), uc = [
9188
9200
  sc,
9189
9201
  ic
9190
- ], xc = /* @__PURE__ */ Te({
9202
+ ], xc = /* @__PURE__ */ De({
9191
9203
  __name: "RMLoader",
9192
9204
  props: {
9193
9205
  isActive: { type: Boolean, default: !1 },
@@ -9213,7 +9225,7 @@ export {
9213
9225
  qt as RMButton,
9214
9226
  _r as RMCheckbox,
9215
9227
  kc as RMConfirm,
9216
- Dc as RMDatepicker,
9228
+ Tc as RMDatepicker,
9217
9229
  to as RMDropdown,
9218
9230
  wc as RMEditable,
9219
9231
  Mc as RMHint,
@@ -9223,5 +9235,5 @@ export {
9223
9235
  fc as RMProgress,
9224
9236
  bc as RMSelect,
9225
9237
  pc as RMSkeleton,
9226
- Tc as RMTooltip
9238
+ Dc as RMTooltip
9227
9239
  };