redmine-ui-kit 1.6.11 → 1.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var Jl = Object.defineProperty;
2
2
  var Zl = (e, a, t) => a in e ? Jl(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
3
  var de = (e, a, t) => (Zl(e, typeof a != "symbol" ? a + "" : a, t), t);
4
- import { defineComponent as Te, openBlock as p, createElementBlock as A, normalizeStyle as tt, createElementVNode as z, useSlots as It, computed as H, normalizeClass as ye, toDisplayString as ke, createCommentVNode as I, renderSlot as ne, withDirectives as Xe, vModelCheckbox as Kl, ref as U, createTextVNode as ut, onMounted as Ue, nextTick as mt, unref as c, mergeProps as Fe, withKeys as Jt, toHandlerKey as Ja, withModifiers as Dt, vModelText as Ln, vShow as zt, createBlock as be, Teleport as Ea, createVNode as Ee, Transition as lt, withCtx as fe, shallowRef as Kt, onBeforeUnmount as er, watch as dt, Fragment as _e, renderList as Se, reactive as _a, toRef as ga, onUnmounted as Ya, isRef as In, createSlots as at, normalizeProps as Qe, guardReactiveProps as rt, resolveDynamicComponent as Ba, h as tr, render as Nn, onBeforeUpdate as ar, getCurrentScope as nr, onScopeDispose as lr } from "vue";
4
+ import { defineComponent as Te, openBlock as f, createElementBlock as A, normalizeStyle as tt, createElementVNode as z, useSlots as It, computed as H, normalizeClass as ye, toDisplayString as ke, createCommentVNode as I, renderSlot as ne, withDirectives as Xe, vModelCheckbox as Kl, ref as U, createTextVNode as ut, onMounted as Ue, nextTick as mt, unref as c, mergeProps as Fe, withKeys as Jt, toHandlerKey as Ja, withModifiers as Dt, vModelText as Ln, vShow as zt, createBlock as be, Teleport as Ea, createVNode as Ee, Transition as lt, withCtx as fe, shallowRef as Kt, onBeforeUnmount as er, watch as dt, Fragment as _e, renderList as Se, reactive as _a, toRef as ga, onUnmounted as Ya, isRef as In, createSlots as at, normalizeProps as Qe, guardReactiveProps as rt, resolveDynamicComponent as Ba, h as tr, render as Nn, onBeforeUpdate as ar, getCurrentScope as nr, onScopeDispose as lr } from "vue";
5
5
  import { useInfiniteScroll as rr, useEventListener as Fn } from "@vueuse/core";
6
6
  import { vOnClickOutside as or } from "@vueuse/components";
7
7
  const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
@@ -13,7 +13,7 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
13
13
  minHeight: { default: 320 }
14
14
  },
15
15
  setup(e) {
16
- return (a, t) => (p(), A("div", {
16
+ return (a, t) => (f(), A("div", {
17
17
  class: "rm-skeleton",
18
18
  style: tt({
19
19
  backgroundColor: a.color,
@@ -39,7 +39,7 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
39
39
  emits: ["click"],
40
40
  setup(e) {
41
41
  const a = It(), t = H(() => !!a.icon), n = H(() => !!a.default);
42
- return (l, r) => (p(), A("button", {
42
+ return (l, r) => (f(), A("button", {
43
43
  class: ye([
44
44
  "rm-button",
45
45
  l.size.length ? `rm-button--${l.size}` : "",
@@ -55,12 +55,12 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
55
55
  onClick: r[0] || (r[0] = (s) => l.$emit("click", s))
56
56
  }, [
57
57
  z("div", dr, [
58
- l.label ? (p(), A("span", cr, ke(l.label), 1)) : I("", !0),
59
- !l.label && n.value ? (p(), A("span", mr, [
58
+ l.label ? (f(), A("span", cr, ke(l.label), 1)) : I("", !0),
59
+ !l.label && n.value ? (f(), A("span", mr, [
60
60
  ne(l.$slots, "default")
61
61
  ])) : I("", !0)
62
62
  ]),
63
- t.value ? (p(), A("div", vr, [
63
+ t.value ? (f(), A("div", vr, [
64
64
  ne(l.$slots, "icon")
65
65
  ])) : I("", !0)
66
66
  ], 10, ur));
@@ -73,7 +73,7 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
73
73
  },
74
74
  setup(e) {
75
75
  const a = e, t = H(() => !a.done || !a.all ? 0 : Math.round(a.done / a.all * 100));
76
- return (n, l) => (p(), A("div", pr, [
76
+ return (n, l) => (f(), A("div", pr, [
77
77
  z("div", fr, [
78
78
  z("div", {
79
79
  class: "rm-progress-line__done",
@@ -102,7 +102,7 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
102
102
  n("update:modelValue", r);
103
103
  }
104
104
  });
105
- return (r, s) => (p(), A("div", yr, [
105
+ return (r, s) => (f(), A("div", yr, [
106
106
  Xe(z("input", {
107
107
  id: `${r.name}_checkbox`,
108
108
  "onUpdate:modelValue": s[0] || (s[0] = (o) => l.value = o),
@@ -124,7 +124,7 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
124
124
  { disabled: r.disabled }
125
125
  ])
126
126
  }, null, 10, br),
127
- r.label ? (p(), A("label", {
127
+ r.label ? (f(), A("label", {
128
128
  key: 0,
129
129
  for: `${r.name}_checkbox`,
130
130
  class: "rm-checkbox-label"
@@ -156,26 +156,26 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
156
156
  MAX_SIZE: "maxFileSizeError",
157
157
  FILE_TYPE: "fileTypeError"
158
158
  }
159
- }, r = U(), s = H(() => t.acceptFiles.split(",").map((f) => b(f)).join(", ")), o = H(() => t.deniedFiles.split(",").map((f) => b(f)).join(", ")), v = H(() => Math.round(t.maxFileSize / 1024 / 1024));
160
- function b(f, D = "/") {
161
- return f.split(D).slice(-1)[0];
159
+ }, r = U(), s = H(() => t.acceptFiles.split(",").map((p) => w(p)).join(", ")), o = H(() => t.deniedFiles.split(",").map((p) => w(p)).join(", ")), v = H(() => Math.round(t.maxFileSize / 1024 / 1024));
160
+ function w(p, D = "/") {
161
+ return p.split(D).slice(-1)[0];
162
162
  }
163
- function w(f) {
164
- var _;
165
- if (!((_ = f.target.files) != null && _.length) || !r.value)
163
+ function _(p) {
164
+ var k;
165
+ if (!((k = p.target.files) != null && k.length) || !r.value)
166
166
  return;
167
- const D = k({ files: f.target.files, target: r.value });
167
+ const D = g({ files: p.target.files, target: r.value });
168
168
  n("attached", D);
169
169
  }
170
- function u(f, D) {
171
- n("upload:error", { errorType: f, errorContent: D });
170
+ function u(p, D) {
171
+ n("upload:error", { errorType: p, errorContent: D });
172
172
  }
173
- function k({ files: f, target: D }) {
174
- const { MAX_SIZE: _, FILE_TYPE: W } = l.ERROR_TYPES, G = new DataTransfer();
175
- for (const P of Object.values(f)) {
173
+ function g({ files: p, target: D }) {
174
+ const { MAX_SIZE: k, FILE_TYPE: W } = l.ERROR_TYPES, G = new DataTransfer();
175
+ for (const P of Object.values(p)) {
176
176
  if (P.size > t.maxFileSize) {
177
177
  u(
178
- _,
178
+ k,
179
179
  {
180
180
  fileName: P.name,
181
181
  errorInfo: `${(P.size / 1024 / 1024).toFixed(2)}mb/${v.value}mb`
@@ -183,9 +183,9 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
183
183
  );
184
184
  continue;
185
185
  }
186
- const R = b(P.type), C = b(P.name, ".");
186
+ const O = w(P.type), C = w(P.name, ".");
187
187
  let x = !1;
188
- if (t.deniedFiles && (x = t.deniedFiles.includes(C) || t.deniedFiles.includes(R)), t.acceptFiles && (x = !t.acceptFiles.includes(C) || !t.acceptFiles.includes(R)), x) {
188
+ if (t.deniedFiles && (x = t.deniedFiles.includes(C) || t.deniedFiles.includes(O)), t.acceptFiles && (x = !t.acceptFiles.includes(C) || !t.acceptFiles.includes(O)), x) {
189
189
  u(
190
190
  W,
191
191
  { fileName: P.name, errorInfo: P.type }
@@ -196,9 +196,9 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
196
196
  }
197
197
  return D.files = G.files, G.files;
198
198
  }
199
- return (f, D) => (p(), A("div", kr, [
199
+ return (p, D) => (f(), A("div", kr, [
200
200
  z("label", Mr, [
201
- z("span", Dr, ke(f.attachLabel), 1),
201
+ z("span", Dr, ke(p.attachLabel), 1),
202
202
  z("input", {
203
203
  id: "file",
204
204
  ref_key: "file",
@@ -206,21 +206,21 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
206
206
  type: "file",
207
207
  name: "file",
208
208
  hidden: "",
209
- multiple: f.multiple,
210
- accept: f.acceptFiles,
211
- onChange: D[0] || (D[0] = (_) => w(_))
209
+ multiple: p.multiple,
210
+ accept: p.acceptFiles,
211
+ onChange: D[0] || (D[0] = (k) => _(k))
212
212
  }, null, 40, Tr)
213
213
  ]),
214
214
  z("span", Pr, [
215
- o.value && o.value.length ? (p(), A("span", xr, [
216
- ut(ke(f.deniedFilesLabel) + ": " + ke(o.value), 1),
215
+ o.value && o.value.length ? (f(), A("span", xr, [
216
+ ut(ke(p.deniedFilesLabel) + ": " + ke(o.value), 1),
217
217
  $r
218
218
  ])) : I("", !0),
219
- s.value && s.value.length ? (p(), A("span", Cr, [
220
- ut(ke(f.acceptFilesLabel) + ": " + ke(s.value), 1),
219
+ s.value && s.value.length ? (f(), A("span", Cr, [
220
+ ut(ke(p.acceptFilesLabel) + ": " + ke(s.value), 1),
221
221
  Ar
222
222
  ])) : I("", !0),
223
- ut(" " + ke(f.maxFileSizeLabel) + ": " + ke(v.value) + "mb ", 1)
223
+ ut(" " + ke(p.maxFileSizeLabel) + ": " + ke(v.value) + "mb ", 1)
224
224
  ])
225
225
  ]));
226
226
  }
@@ -266,94 +266,94 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
266
266
  const t = e, n = a, l = Yr(), r = {
267
267
  CTRL_ENTER: "keydown",
268
268
  ALT_ENTER: "keydown"
269
- }, s = U(!1), o = U(0), v = U(), b = H({
269
+ }, s = U(!1), o = U(0), v = U(), w = H({
270
270
  get() {
271
271
  return !t.modelValue && o.value && v.value && G(v.value, o.value), t.modelValue;
272
272
  },
273
273
  set(P) {
274
- t.isAutoGrow && v.value && k(v.value), n("update:modelValue", P);
274
+ t.isAutoGrow && v.value && g(v.value), n("update:modelValue", P);
275
275
  }
276
276
  });
277
277
  Ue(() => {
278
278
  var P;
279
279
  mt().then(() => {
280
- var R;
281
- o.value = ((R = v.value) == null ? void 0 : R.offsetHeight) || 0;
282
- }), t.isAutoGrow && v.value && k(v.value), t.isAutofocus && ((P = v.value) == null || P.focus());
280
+ var O;
281
+ o.value = ((O = v.value) == null ? void 0 : O.offsetHeight) || 0;
282
+ }), t.isAutoGrow && v.value && g(v.value), t.isAutofocus && ((P = v.value) == null || P.focus());
283
283
  });
284
- function w(P) {
284
+ function _(P) {
285
285
  s.value = !0, n("focus", P);
286
286
  }
287
287
  function u(P) {
288
288
  s.value = !1, n("blur", P);
289
289
  }
290
- function k(P) {
290
+ function g(P) {
291
291
  G(P, 5), G(P, P.scrollHeight);
292
292
  }
293
- function f(P) {
293
+ function p(P) {
294
294
  n("enter-press", P);
295
295
  }
296
296
  function D(P) {
297
297
  n("ctrl-enter-press", P);
298
298
  }
299
- function _(P) {
299
+ function k(P) {
300
300
  n("alt-enter-press", P);
301
301
  }
302
302
  function W({ target: P }) {
303
303
  n("change", P.value);
304
304
  }
305
- function G(P, R) {
306
- P.style.height = `${R}px`;
305
+ function G(P, O) {
306
+ P.style.height = `${O}px`;
307
307
  }
308
- return (P, R) => (p(), A("div", {
308
+ return (P, O) => (f(), A("div", {
309
309
  class: ye(["rm-input", { disabled: P.disabled }])
310
310
  }, [
311
- P.label ? (p(), A("label", {
311
+ P.label ? (f(), A("label", {
312
312
  key: 0,
313
313
  for: c(l),
314
314
  class: "rm-input__label"
315
315
  }, ke(P.label), 9, Br)) : I("", !0),
316
316
  z("div", Lr, [
317
- P.isAutoGrow ? Xe((p(), A("textarea", Fe({
317
+ P.isAutoGrow ? Xe((f(), A("textarea", Fe({
318
318
  key: 0,
319
319
  id: c(l),
320
320
  ref_key: "textareaRef",
321
321
  ref: v,
322
- "onUpdate:modelValue": R[0] || (R[0] = (C) => b.value = C),
322
+ "onUpdate:modelValue": O[0] || (O[0] = (C) => w.value = C),
323
323
  class: "rm-input__input",
324
324
  maxlength: P.maxlength,
325
325
  required: P.required,
326
326
  placeholder: P.placeholder,
327
327
  disabled: P.disabled,
328
- onKeypress: Jt(f, ["enter"])
328
+ onKeypress: Jt(p, ["enter"])
329
329
  }, {
330
330
  [Ja(r.CTRL_ENTER)]: Jt(Dt(D, ["ctrl"]), ["enter"])
331
331
  }, {
332
- [Ja(r.ALT_ENTER)]: Jt(Dt(_, ["alt"]), ["enter"])
332
+ [Ja(r.ALT_ENTER)]: Jt(Dt(k, ["alt"]), ["enter"])
333
333
  }, {
334
- onFocus: w,
334
+ onFocus: _,
335
335
  onBlur: u,
336
- onChange: R[1] || (R[1] = (C) => W(C))
336
+ onChange: O[1] || (O[1] = (C) => W(C))
337
337
  }), null, 16, Ir)), [
338
- [Ln, b.value]
339
- ]) : Xe((p(), A("input", Fe({
338
+ [Ln, w.value]
339
+ ]) : Xe((f(), A("input", Fe({
340
340
  key: 1,
341
341
  id: c(l),
342
- "onUpdate:modelValue": R[2] || (R[2] = (C) => b.value = C),
342
+ "onUpdate:modelValue": O[2] || (O[2] = (C) => w.value = C),
343
343
  class: "rm-input__input",
344
344
  maxlength: P.maxlength,
345
345
  required: P.required,
346
346
  placeholder: P.placeholder,
347
347
  disabled: P.disabled,
348
- onKeypress: Jt(f, ["enter"])
348
+ onKeypress: Jt(p, ["enter"])
349
349
  }, {
350
350
  [Ja(r.CTRL_ENTER)]: Jt(Dt(D, ["ctrl"]), ["enter"])
351
351
  }, {
352
- onFocus: w,
352
+ onFocus: _,
353
353
  onBlur: u,
354
- onChange: R[3] || (R[3] = (C) => W(C))
354
+ onChange: O[3] || (O[3] = (C) => W(C))
355
355
  }), null, 16, Nr)), [
356
- [Ln, b.value]
356
+ [Ln, w.value]
357
357
  ]),
358
358
  Xe(z("span", { class: "rm-input__hint" }, ke(P.hint), 513), [
359
359
  [zt, s.value]
@@ -397,13 +397,13 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
397
397
  function l() {
398
398
  t.persistent || n("close");
399
399
  }
400
- return (r, s) => (p(), be(Ea, { to: "body" }, [
400
+ return (r, s) => (f(), be(Ea, { to: "body" }, [
401
401
  Ee(lt, {
402
402
  name: r.transitionName,
403
403
  appear: ""
404
404
  }, {
405
405
  default: fe(() => [
406
- r.isActive ? Xe((p(), A("div", Fe({ key: 0 }, r.rootAttributes, { class: "rm-modal" }), [
406
+ r.isActive ? Xe((f(), A("div", Fe({ key: 0 }, r.rootAttributes, { class: "rm-modal" }), [
407
407
  z("div", {
408
408
  class: "rm-modal__overlay",
409
409
  onClick: Dt(l, ["self"])
@@ -413,11 +413,11 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
413
413
  mode: "out-in"
414
414
  }, {
415
415
  default: fe(() => [
416
- r.isDataLoaded ? (p(), A("div", {
416
+ r.isDataLoaded ? (f(), A("div", {
417
417
  key: 0,
418
418
  class: ye(["rm-modal-wrapper", r.contentClass])
419
419
  }, [
420
- r.persistent ? I("", !0) : (p(), be(jt, {
420
+ r.persistent ? I("", !0) : (f(), be(jt, {
421
421
  key: 0,
422
422
  type: "button",
423
423
  class: "rm-modal__close",
@@ -434,9 +434,9 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
434
434
  z("div", Hr, [
435
435
  ne(r.$slots, "default")
436
436
  ])
437
- ], 2)) : (p(), A("div", Wr, [
437
+ ], 2)) : (f(), A("div", Wr, [
438
438
  ne(r.$slots, "loader"),
439
- r.$slots.loader ? I("", !0) : (p(), A("div", zr))
439
+ r.$slots.loader ? I("", !0) : (f(), A("div", zr))
440
440
  ]))
441
441
  ]),
442
442
  _: 3
@@ -608,7 +608,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
608
608
  const t = e, n = a, l = Kt(null), r = Kt(null), s = Kt(null), o = Kt(null), v = U({
609
609
  width: Number.POSITIVE_INFINITY,
610
610
  height: Number.POSITIVE_INFINITY
611
- }), b = U(!1), w = U(""), u = t.withInfinityScroll ? t.infinityScrollOptions : {
611
+ }), w = U(!1), _ = U(""), u = t.withInfinityScroll ? t.infinityScrollOptions : {
612
612
  canLoadMore: () => !1
613
613
  };
614
614
  rr(
@@ -616,10 +616,10 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
616
616
  () => n("load-more"),
617
617
  u
618
618
  );
619
- const k = H(() => {
619
+ const g = H(() => {
620
620
  const x = W(t.options);
621
- return t.searchable && w.value ? x.filter(({ name: S }) => S.toString().toLowerCase().includes(w.value.toLowerCase())) : x;
622
- }), f = H(() => {
621
+ return t.searchable && _.value ? x.filter(({ name: S }) => S.toString().toLowerCase().includes(_.value.toLowerCase())) : x;
622
+ }), p = H(() => {
623
623
  var S;
624
624
  if (!t.modelValue)
625
625
  return "";
@@ -640,8 +640,8 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
640
640
  width: `${s.value.clientWidth + x}px`,
641
641
  whiteSpace: "normal"
642
642
  };
643
- }), _ = jr(function({ target: x }) {
644
- w.value = x.value;
643
+ }), k = jr(function({ target: x }) {
644
+ _.value = x.value;
645
645
  }, 300);
646
646
  function W(x) {
647
647
  return typeof x[0] == "string" || typeof x[0] == "number" ? x.map((S) => ({ name: S, value: S })) : t.options;
@@ -651,30 +651,30 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
651
651
  }
652
652
  function P(x) {
653
653
  if (!t.multiple && !t.chips || !Array.isArray(t.modelValue)) {
654
- n("update:modelValue", x.value), n("select", x), b.value = !1;
654
+ n("update:modelValue", x.value), n("select", x), w.value = !1;
655
655
  return;
656
656
  }
657
657
  if (t.modelValue.includes(x.value)) {
658
658
  const S = t.modelValue.filter((h) => h !== x.value);
659
- n("update:modelValue", S), n("select", k.value.filter(({ value: h }) => S.includes(h)));
659
+ n("update:modelValue", S), n("select", g.value.filter(({ value: h }) => S.includes(h)));
660
660
  } else {
661
661
  const S = [...t.modelValue, x.value];
662
- n("update:modelValue", S), n("select", k.value.filter(({ value: h }) => S.includes(h)));
662
+ n("update:modelValue", S), n("select", g.value.filter(({ value: h }) => S.includes(h)));
663
663
  }
664
664
  }
665
- function R() {
666
- !t.searchable || !w.value || (w.value = "", r.value && r.value.value && (r.value.value = ""));
665
+ function O() {
666
+ !t.searchable || !_.value || (_.value = "", r.value && r.value.value && (r.value.value = ""));
667
667
  }
668
668
  function C() {
669
669
  v.value.width = window.innerWidth, v.value.height = window.innerHeight;
670
670
  }
671
671
  return Ue(() => {
672
- b.value = t.opened, (t.multiple || t.chips) && !Array.isArray(t.modelValue) && n("update:modelValue", []), document.addEventListener("DOMContentLoaded", C), window.addEventListener("resize", C);
672
+ w.value = t.opened, (t.multiple || t.chips) && !Array.isArray(t.modelValue) && n("update:modelValue", []), document.addEventListener("DOMContentLoaded", C), window.addEventListener("resize", C);
673
673
  }), er(() => {
674
674
  document.addEventListener("DOMContentLoaded", C), window.removeEventListener("resize", C);
675
- }), dt(b, () => {
676
- b.value || setTimeout(R, 300);
677
- }), (x, S) => Xe((p(), A("div", {
675
+ }), dt(w, () => {
676
+ w.value || setTimeout(O, 300);
677
+ }), (x, S) => Xe((f(), A("div", {
678
678
  class: ye([
679
679
  "rm-select",
680
680
  {
@@ -683,19 +683,19 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
683
683
  }
684
684
  ])
685
685
  }, [
686
- x.label ? (p(), A("span", {
686
+ x.label ? (f(), A("span", {
687
687
  key: 0,
688
688
  class: "rm-select__label",
689
- onClick: S[0] || (S[0] = (h) => b.value = !b.value)
689
+ onClick: S[0] || (S[0] = (h) => w.value = !w.value)
690
690
  }, ke(x.label), 1)) : I("", !0),
691
691
  z("div", {
692
692
  class: ye([
693
693
  "rm-select-input",
694
694
  {
695
- "rm-select-input--focused": b.value
695
+ "rm-select-input--focused": w.value
696
696
  }
697
697
  ]),
698
- onClick: S[1] || (S[1] = (h) => b.value = !b.value)
698
+ onClick: S[1] || (S[1] = (h) => w.value = !w.value)
699
699
  }, [
700
700
  z("input", {
701
701
  id: `select__${x.name}`,
@@ -710,24 +710,25 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
710
710
  }, null, 8, Kr),
711
711
  x.$slots["slot-placeholder"] ? ne(x.$slots, "slot-placeholder", {
712
712
  key: 1,
713
- options: k.value,
714
- selected: f.value
715
- }) : (p(), A(_e, { key: 0 }, [
716
- x.placeholder && (x.staticPlaceholder || !f.value) ? (p(), A("div", eo, [
713
+ options: g.value,
714
+ selected: p.value
715
+ }) : (f(), A(_e, { key: 0 }, [
716
+ x.placeholder && (x.staticPlaceholder || !p.value) ? (f(), A("div", eo, [
717
717
  z("span", to, ke(x.placeholder), 1),
718
- x.staticPlaceholder && (x.multiple || x.chips) && f.value ? (p(), A("span", ao, ke(Array.isArray(f.value) ? f.value.length : f.value.toString().split(", ").length), 1)) : I("", !0)
719
- ])) : (p(), A("div", no, [
720
- typeof f.value == "string" ? (p(), A(_e, { key: 0 }, [
721
- ut(ke(f.value), 1)
718
+ x.staticPlaceholder && (x.multiple || x.chips) && p.value ? (f(), A("span", ao, ke(Array.isArray(p.value) ? p.value.length : p.value.toString().split(", ").length), 1)) : I("", !0)
719
+ ])) : (f(), A("div", no, [
720
+ typeof p.value == "string" ? (f(), A(_e, { key: 0 }, [
721
+ ut(ke(p.value), 1)
722
722
  ], 64)) : I("", !0),
723
- Array.isArray(f.value) && x.chips ? (p(), A("div", lo, [
724
- (p(!0), A(_e, null, Se(f.value, (h, N) => (p(), A("div", {
723
+ Array.isArray(p.value) && x.chips ? (f(), A("div", lo, [
724
+ (f(!0), A(_e, null, Se(p.value, (h, N) => (f(), A("div", {
725
725
  key: `chip__${N}`,
726
726
  class: "rm-select-chip"
727
727
  }, [
728
728
  z("span", ro, ke(h.name), 1),
729
729
  z("button", {
730
730
  class: "rm-select-chip__btn",
731
+ type: "button",
731
732
  onClick: Dt((ee) => P(h), ["stop"])
732
733
  }, io, 8, oo)
733
734
  ]))), 128))
@@ -741,7 +742,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
741
742
  mode: "out-in"
742
743
  }, {
743
744
  default: fe(() => [
744
- x.removable && x.modelValue.toString().length ? (p(), A("button", {
745
+ x.removable && x.modelValue.toString().length ? (f(), A("button", {
745
746
  key: 0,
746
747
  class: "rm-select-input-controls__btn rm-select-input-controls__btn--remove",
747
748
  type: "button",
@@ -760,44 +761,44 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
760
761
  class: "rm-select-inner",
761
762
  style: tt(D.value)
762
763
  }, [
763
- x.searchable ? (p(), A("div", po, [
764
+ x.searchable ? (f(), A("div", po, [
764
765
  fo,
765
766
  z("input", {
766
767
  ref_key: "searchInputRef",
767
768
  ref: r,
768
- "model-value": w.value,
769
+ "model-value": _.value,
769
770
  type: "text",
770
771
  class: "rm-select-inner__search-input",
771
772
  placeholder: x.searchPlaceholder,
772
773
  onInput: S[2] || (S[2] = //@ts-ignore
773
- (...h) => c(_) && c(_)(...h))
774
+ (...h) => c(k) && c(k)(...h))
774
775
  }, null, 40, ho)
775
776
  ])) : I("", !0),
776
- k.value && k.value.length ? (p(), A(_e, { key: 1 }, [
777
+ g.value && g.value.length ? (f(), A(_e, { key: 1 }, [
777
778
  x.$slots["slot-options"] ? ne(x.$slots, "slot-options", {
778
779
  key: 1,
779
- options: k.value,
780
- selected: f.value,
781
- isFocus: b.value,
782
- close: () => b.value = !1
783
- }) : (p(), A("ul", {
780
+ options: g.value,
781
+ selected: p.value,
782
+ isFocus: w.value,
783
+ close: () => w.value = !1
784
+ }) : (f(), A("ul", {
784
785
  key: 0,
785
786
  ref_key: "optionsRef",
786
787
  ref: o,
787
788
  class: "rm-select-inner-list"
788
789
  }, [
789
- (p(!0), A(_e, null, Se(k.value, (h, N) => (p(), A("li", {
790
+ (f(!0), A(_e, null, Se(g.value, (h, N) => (f(), A("li", {
790
791
  key: `${N}_option`,
791
792
  class: ye([
792
793
  "rm-select-inner-list__item",
793
794
  {
794
795
  // eslint-disable-next-line max-len
795
- "rm-select-inner__item--selected": !x.multiple && !x.chips || !Array.isArray(x.modelValue) ? h.value === f.value : x.modelValue.includes(h.value)
796
+ "rm-select-inner__item--selected": !x.multiple && !x.chips || !Array.isArray(x.modelValue) ? h.value === p.value : x.modelValue.includes(h.value)
796
797
  }
797
798
  ]),
798
799
  onClick: (ee) => P(h)
799
800
  }, [
800
- x.multiple || x.chips ? (p(), be(_r, {
801
+ x.multiple || x.chips ? (f(), be(_r, {
801
802
  key: 0,
802
803
  "model-value": x.modelValue.includes(h.value),
803
804
  name: h.name.toString(),
@@ -808,15 +809,15 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
808
809
  z("span", null, ke(h.name), 1)
809
810
  ], 10, yo))), 128))
810
811
  ], 512))
811
- ], 64)) : (p(), A("li", go, ke(x.emptySelectLabel), 1))
812
+ ], 64)) : (f(), A("li", go, ke(x.emptySelectLabel), 1))
812
813
  ], 4), [
813
- [zt, b.value]
814
+ [zt, w.value]
814
815
  ])
815
816
  ]),
816
817
  _: 3
817
818
  })
818
819
  ], 2)), [
819
- [c(ka), () => b.value = !1]
820
+ [c(ka), () => w.value = !1]
820
821
  ]);
821
822
  }
822
823
  }), bo = (e, a) => {
@@ -843,7 +844,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
843
844
  Mo
844
845
  ];
845
846
  function To(e, a) {
846
- return p(), A("svg", _o, Do);
847
+ return f(), A("svg", _o, Do);
847
848
  }
848
849
  const Po = /* @__PURE__ */ bo(wo, [["render", To]]), xo = {
849
850
  key: 0,
@@ -871,57 +872,57 @@ const Po = /* @__PURE__ */ bo(wo, [["render", To]]), xo = {
871
872
  emits: ["change"],
872
873
  setup(e, { emit: a }) {
873
874
  const t = e, n = a, l = Kt(null), r = Kt(null), s = U(!1), o = U(t.value);
874
- dt(() => t.value, (_) => o.value = _);
875
+ dt(() => t.value, (k) => o.value = k);
875
876
  function v() {
876
877
  l.value && (r.value = l.value.innerHTML, s.value = !0, setTimeout(() => {
877
878
  l.value && l.value.focus();
878
879
  }, 200));
879
880
  }
880
- function b() {
881
+ function w() {
881
882
  t.editByFocus && v();
882
883
  }
883
- function w() {
884
+ function _() {
884
885
  o.value = t.value, r.value = null;
885
886
  }
886
887
  function u() {
887
- l.value && l.value.blur(), s.value = !1, w();
888
+ l.value && l.value.blur(), s.value = !1, _();
888
889
  }
889
- function k() {
890
+ function g() {
890
891
  l.value && r.value && (l.value.innerHTML = r.value), u();
891
892
  }
892
- function f() {
893
+ function p() {
893
894
  l.value && (o.value = l.value.innerText.trim());
894
895
  }
895
896
  function D() {
896
897
  n("change", o.value), u();
897
898
  }
898
- return (_, W) => Xe((p(), A("div", {
899
+ return (k, W) => Xe((f(), A("div", {
899
900
  class: ye(["rm-editable", { active: s.value }])
900
901
  }, [
901
- s.value ? (p(), A("div", xo, [
902
- ne(_.$slots, "header")
902
+ s.value ? (f(), A("div", xo, [
903
+ ne(k.$slots, "header")
903
904
  ])) : I("", !0),
904
905
  z("div", {
905
906
  class: "rm-editable__content",
906
- onClick: b
907
+ onClick: w
907
908
  }, [
908
909
  z("div", $o, [
909
910
  z("div", {
910
911
  ref_key: "contentRef",
911
912
  ref: l,
912
- contenteditable: s.value && !_.disabled,
913
+ contenteditable: s.value && !k.disabled,
913
914
  class: ye([
914
915
  "rm-editable__content-text",
915
916
  {
916
917
  "rm-editable__content-text--edit": s.value
917
918
  }
918
919
  ]),
919
- onInput: f,
920
+ onInput: p,
920
921
  onBlur: D
921
922
  }, [
922
- ne(_.$slots, "default", { value: _.value })
923
+ ne(k.$slots, "default", { value: k.value })
923
924
  ], 42, Co),
924
- !s.value && !_.editByFocus ? (p(), be(jt, {
925
+ !s.value && !k.editByFocus ? (f(), be(jt, {
925
926
  key: 0,
926
927
  flat: "",
927
928
  type: "button",
@@ -935,28 +936,28 @@ const Po = /* @__PURE__ */ bo(wo, [["render", To]]), xo = {
935
936
  })) : I("", !0)
936
937
  ])
937
938
  ]),
938
- s.value && !_.disabled ? (p(), A("div", Ao, [
939
- _.$slots.footer ? ne(_.$slots, "footer", { key: 0 }) : I("", !0),
940
- !_.$slots.footer && _.hasActions ? (p(), A("div", Ro, [
939
+ s.value && !k.disabled ? (f(), A("div", Ao, [
940
+ k.$slots.footer ? ne(k.$slots, "footer", { key: 0 }) : I("", !0),
941
+ !k.$slots.footer && k.hasActions ? (f(), A("div", Ro, [
941
942
  Ee(jt, {
942
- label: _.saveLabel,
943
- disabled: _.disabledSave,
943
+ label: k.saveLabel,
944
+ disabled: k.disabledSave,
944
945
  flat: "",
945
946
  type: "button",
946
947
  class: "rm-common-button rm-common-button--flat rm-common-button--blue",
947
948
  onClick: D
948
949
  }, null, 8, ["label", "disabled"]),
949
950
  Ee(jt, {
950
- label: _.cancelLabel,
951
+ label: k.cancelLabel,
951
952
  flat: "",
952
953
  type: "button",
953
954
  class: "rm-common-button rm-common-button--flat",
954
- onClick: k
955
+ onClick: g
955
956
  }, null, 8, ["label"])
956
957
  ])) : I("", !0)
957
958
  ])) : I("", !0)
958
959
  ], 2)), [
959
- [c(ka), k]
960
+ [c(ka), g]
960
961
  ]);
961
962
  }
962
963
  }), Oo = {
@@ -974,7 +975,7 @@ const Po = /* @__PURE__ */ bo(wo, [["render", To]]), xo = {
974
975
  So
975
976
  ];
976
977
  function Yo(e, a) {
977
- return p(), A("svg", Oo, [...Eo]);
978
+ return f(), A("svg", Oo, [...Eo]);
978
979
  }
979
980
  const Bo = { render: Yo }, Lo = {
980
981
  key: 0,
@@ -990,10 +991,10 @@ const Bo = { render: Yo }, Lo = {
990
991
  emits: ["close"],
991
992
  setup(e, { emit: a }) {
992
993
  const t = a;
993
- return (n, l) => (p(), be(lt, { name: "slide" }, {
994
+ return (n, l) => (f(), be(lt, { name: "slide" }, {
994
995
  default: fe(() => [
995
- n.visibility ? (p(), A("div", Lo, [
996
- Xe((p(), A("div", {
996
+ n.visibility ? (f(), A("div", Lo, [
997
+ Xe((f(), A("div", {
997
998
  class: ye(["rm-alert", n.status])
998
999
  }, [
999
1000
  z("div", Io, [
@@ -1041,9 +1042,9 @@ const Bo = { render: Yo }, Lo = {
1041
1042
  emits: ["cancel", "confirm"],
1042
1043
  setup(e, { emit: a }) {
1043
1044
  const t = a;
1044
- return (n, l) => (p(), be(lt, { name: "fade" }, {
1045
+ return (n, l) => (f(), be(lt, { name: "fade" }, {
1045
1046
  default: fe(() => [
1046
- n.visibility ? Xe((p(), A("div", Wo, [
1047
+ n.visibility ? Xe((f(), A("div", Wo, [
1047
1048
  z("h3", zo, ke(n.title), 1),
1048
1049
  z("div", jo, [
1049
1050
  Ee(jt, {
@@ -1075,9 +1076,9 @@ const Bo = { render: Yo }, Lo = {
1075
1076
  emits: ["update:isActive"],
1076
1077
  setup(e, { emit: a }) {
1077
1078
  const t = a;
1078
- return (n, l) => (p(), be(lt, { name: "slide" }, {
1079
+ return (n, l) => (f(), be(lt, { name: "slide" }, {
1079
1080
  default: fe(() => [
1080
- n.isActive ? Xe((p(), A("div", qo, [
1081
+ n.isActive ? Xe((f(), A("div", qo, [
1081
1082
  ne(n.$slots, "default")
1082
1083
  ])), [
1083
1084
  [c(ka), () => t("update:isActive", !1)]
@@ -1122,7 +1123,7 @@ function ul(e, a) {
1122
1123
  hours: s = 0,
1123
1124
  minutes: o = 0,
1124
1125
  seconds: v = 0
1125
- } = a, b = ve(e), w = n || t ? yt(b, n + t * 12) : b, u = r || l ? ft(w, r + l * 7) : w, k = o + s * 60, D = (v + k * 60) * 1e3;
1126
+ } = a, w = ve(e), _ = n || t ? yt(w, n + t * 12) : w, u = r || l ? ft(_, r + l * 7) : _, g = o + s * 60, D = (v + g * 60) * 1e3;
1126
1127
  return xe(e, u.getTime() + D);
1127
1128
  }
1128
1129
  function Uo(e, a) {
@@ -1138,8 +1139,8 @@ function Gt() {
1138
1139
  return Zo;
1139
1140
  }
1140
1141
  function gt(e, a) {
1141
- var o, v, b, w;
1142
- const t = Gt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((v = (o = a == null ? void 0 : a.locale) == null ? void 0 : o.options) == null ? void 0 : v.weekStartsOn) ?? t.weekStartsOn ?? ((w = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : w.weekStartsOn) ?? 0, l = ve(e), r = l.getDay(), s = (r < n ? 7 : 0) + r - n;
1142
+ var o, v, w, _;
1143
+ const t = Gt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((v = (o = a == null ? void 0 : a.locale) == null ? void 0 : o.options) == null ? void 0 : v.weekStartsOn) ?? t.weekStartsOn ?? ((_ = (w = t.locale) == null ? void 0 : w.options) == null ? void 0 : _.weekStartsOn) ?? 0, l = ve(e), r = l.getDay(), s = (r < n ? 7 : 0) + r - n;
1143
1144
  return l.setDate(l.getDate() - s), l.setHours(0, 0, 0, 0), l;
1144
1145
  }
1145
1146
  function ta(e) {
@@ -1233,8 +1234,8 @@ function yn(e) {
1233
1234
  return t.setFullYear(a.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
1234
1235
  }
1235
1236
  function yl(e, a) {
1236
- var o, v, b, w;
1237
- const t = Gt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((v = (o = a == null ? void 0 : a.locale) == null ? void 0 : o.options) == null ? void 0 : v.weekStartsOn) ?? t.weekStartsOn ?? ((w = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : w.weekStartsOn) ?? 0, l = ve(e), r = l.getDay(), s = (r < n ? -7 : 0) + 6 - (r - n);
1237
+ var o, v, w, _;
1238
+ const t = Gt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((v = (o = a == null ? void 0 : a.locale) == null ? void 0 : o.options) == null ? void 0 : v.weekStartsOn) ?? t.weekStartsOn ?? ((_ = (w = t.locale) == null ? void 0 : w.options) == null ? void 0 : _.weekStartsOn) ?? 0, l = ve(e), r = l.getDay(), s = (r < n ? -7 : 0) + 6 - (r - n);
1238
1239
  return l.setDate(l.getDate() + s), l.setHours(23, 59, 59, 999), l;
1239
1240
  }
1240
1241
  function zn(e) {
@@ -1525,13 +1526,13 @@ function va(e) {
1525
1526
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1526
1527
  gs(o, (u) => u.test(s))
1527
1528
  );
1528
- let b;
1529
- b = e.valueCallback ? e.valueCallback(v) : v, b = t.valueCallback ? (
1529
+ let w;
1530
+ w = e.valueCallback ? e.valueCallback(v) : v, w = t.valueCallback ? (
1530
1531
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1531
- t.valueCallback(b)
1532
- ) : b;
1533
- const w = a.slice(s.length);
1534
- return { value: b, rest: w };
1532
+ t.valueCallback(w)
1533
+ ) : w;
1534
+ const _ = a.slice(s.length);
1535
+ return { value: w, rest: _ };
1535
1536
  };
1536
1537
  }
1537
1538
  function gs(e, a) {
@@ -1683,17 +1684,17 @@ function gn(e) {
1683
1684
  return Math.round(t / dl) + 1;
1684
1685
  }
1685
1686
  function bn(e, a) {
1686
- var w, u, k, f;
1687
- const t = ve(e), n = t.getFullYear(), l = Gt(), r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((u = (w = a == null ? void 0 : a.locale) == null ? void 0 : w.options) == null ? void 0 : u.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((f = (k = l.locale) == null ? void 0 : k.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, s = xe(e, 0);
1687
+ var _, u, g, p;
1688
+ const t = ve(e), n = t.getFullYear(), l = Gt(), r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((u = (_ = a == null ? void 0 : a.locale) == null ? void 0 : _.options) == null ? void 0 : u.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((p = (g = l.locale) == null ? void 0 : g.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s = xe(e, 0);
1688
1689
  s.setFullYear(n + 1, 0, r), s.setHours(0, 0, 0, 0);
1689
1690
  const o = gt(s, a), v = xe(e, 0);
1690
1691
  v.setFullYear(n, 0, r), v.setHours(0, 0, 0, 0);
1691
- const b = gt(v, a);
1692
- return t.getTime() >= o.getTime() ? n + 1 : t.getTime() >= b.getTime() ? n : n - 1;
1692
+ const w = gt(v, a);
1693
+ return t.getTime() >= o.getTime() ? n + 1 : t.getTime() >= w.getTime() ? n : n - 1;
1693
1694
  }
1694
1695
  function Ys(e, a) {
1695
- var o, v, b, w;
1696
- const t = Gt(), n = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((v = (o = a == null ? void 0 : a.locale) == null ? void 0 : o.options) == null ? void 0 : v.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((w = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, l = bn(e, a), r = xe(e, 0);
1696
+ var o, v, w, _;
1697
+ const t = Gt(), n = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((v = (o = a == null ? void 0 : a.locale) == null ? void 0 : o.options) == null ? void 0 : v.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((_ = (w = t.locale) == null ? void 0 : w.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, l = bn(e, a), r = xe(e, 0);
1697
1698
  return r.setFullYear(l, 0, n), r.setHours(0, 0, 0, 0), gt(r, a);
1698
1699
  }
1699
1700
  function wn(e, a) {
@@ -2332,33 +2333,33 @@ function Fs(e, a, t) {
2332
2333
  }
2333
2334
  const Vs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Hs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ws = /^'([^]*?)'?$/, zs = /''/g, js = /[a-zA-Z]/;
2334
2335
  function Tt(e, a, t) {
2335
- var w, u, k, f, D, _, W, G;
2336
- const n = Gt(), l = (t == null ? void 0 : t.locale) ?? n.locale ?? gl, r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (w = t == null ? void 0 : t.locale) == null ? void 0 : w.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (k = n.locale) == null ? void 0 : k.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (D = t == null ? void 0 : t.locale) == null ? void 0 : D.options) == null ? void 0 : _.weekStartsOn) ?? n.weekStartsOn ?? ((G = (W = n.locale) == null ? void 0 : W.options) == null ? void 0 : G.weekStartsOn) ?? 0, o = ve(e);
2336
+ var _, u, g, p, D, k, W, G;
2337
+ const n = Gt(), l = (t == null ? void 0 : t.locale) ?? n.locale ?? gl, r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (_ = t == null ? void 0 : t.locale) == null ? void 0 : _.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((p = (g = n.locale) == null ? void 0 : g.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((k = (D = t == null ? void 0 : t.locale) == null ? void 0 : D.options) == null ? void 0 : k.weekStartsOn) ?? n.weekStartsOn ?? ((G = (W = n.locale) == null ? void 0 : W.options) == null ? void 0 : G.weekStartsOn) ?? 0, o = ve(e);
2337
2338
  if (!ha(o))
2338
2339
  throw new RangeError("Invalid time value");
2339
2340
  let v = a.match(Hs).map((P) => {
2340
- const R = P[0];
2341
- if (R === "p" || R === "P") {
2342
- const C = cn[R];
2341
+ const O = P[0];
2342
+ if (O === "p" || O === "P") {
2343
+ const C = cn[O];
2343
2344
  return C(P, l.formatLong);
2344
2345
  }
2345
2346
  return P;
2346
2347
  }).join("").match(Vs).map((P) => {
2347
2348
  if (P === "''")
2348
2349
  return { isToken: !1, value: "'" };
2349
- const R = P[0];
2350
- if (R === "'")
2350
+ const O = P[0];
2351
+ if (O === "'")
2351
2352
  return { isToken: !1, value: qs(P) };
2352
- if (jn[R])
2353
+ if (jn[O])
2353
2354
  return { isToken: !0, value: P };
2354
- if (R.match(js))
2355
+ if (O.match(js))
2355
2356
  throw new RangeError(
2356
- "Format string contains an unescaped latin alphabet character `" + R + "`"
2357
+ "Format string contains an unescaped latin alphabet character `" + O + "`"
2357
2358
  );
2358
2359
  return { isToken: !1, value: P };
2359
2360
  });
2360
2361
  l.localize.preprocessor && (v = l.localize.preprocessor(o, v));
2361
- const b = {
2362
+ const w = {
2362
2363
  firstWeekContainsDate: r,
2363
2364
  weekStartsOn: s,
2364
2365
  locale: l
@@ -2366,10 +2367,10 @@ function Tt(e, a, t) {
2366
2367
  return v.map((P) => {
2367
2368
  if (!P.isToken)
2368
2369
  return P.value;
2369
- const R = P.value;
2370
- (!(t != null && t.useAdditionalWeekYearTokens) && _l(R) || !(t != null && t.useAdditionalDayOfYearTokens) && wl(R)) && mn(R, a, String(e));
2371
- const C = jn[R[0]];
2372
- return C(o, R, l.localize, b);
2370
+ const O = P.value;
2371
+ (!(t != null && t.useAdditionalWeekYearTokens) && _l(O) || !(t != null && t.useAdditionalDayOfYearTokens) && wl(O)) && mn(O, a, String(e));
2372
+ const C = jn[O[0]];
2373
+ return C(o, O, l.localize, w);
2373
2374
  }).join("");
2374
2375
  }
2375
2376
  function qs(e) {
@@ -3205,9 +3206,9 @@ class yi extends $e {
3205
3206
  }
3206
3207
  }
3207
3208
  function kn(e, a, t) {
3208
- var u, k, f, D;
3209
- const n = Gt(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((k = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : k.weekStartsOn) ?? n.weekStartsOn ?? ((D = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : D.weekStartsOn) ?? 0, r = ve(e), s = r.getDay(), v = (a % 7 + 7) % 7, b = 7 - l, w = a < 0 || a > 6 ? a - (s + b) % 7 : (v + b) % 7 - (s + b) % 7;
3210
- return ft(r, w);
3209
+ var u, g, p, D;
3210
+ const n = Gt(), 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 = (p = n.locale) == null ? void 0 : p.options) == null ? void 0 : D.weekStartsOn) ?? 0, r = ve(e), s = r.getDay(), v = (a % 7 + 7) % 7, w = 7 - l, _ = a < 0 || a > 6 ? a - (s + w) % 7 : (v + w) % 7 - (s + w) % 7;
3211
+ return ft(r, _);
3211
3212
  }
3212
3213
  class gi extends $e {
3213
3214
  constructor() {
@@ -3881,15 +3882,15 @@ const Li = {
3881
3882
  T: new Bi()
3882
3883
  }, Ii = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ni = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Fi = /^'([^]*?)'?$/, Vi = /''/g, Hi = /\S/, Wi = /[a-zA-Z]/;
3883
3884
  function vn(e, a, t, n) {
3884
- var _, W, G, P, R, C, x, S;
3885
- const l = Qs(), r = (n == null ? void 0 : n.locale) ?? l.locale ?? gl, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((W = (_ = n == null ? void 0 : n.locale) == null ? void 0 : _.options) == null ? void 0 : W.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((P = (G = l.locale) == null ? void 0 : G.options) == null ? void 0 : P.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((C = (R = n == null ? void 0 : n.locale) == null ? void 0 : R.options) == null ? void 0 : C.weekStartsOn) ?? l.weekStartsOn ?? ((S = (x = l.locale) == null ? void 0 : x.options) == null ? void 0 : S.weekStartsOn) ?? 0;
3885
+ var k, W, G, P, O, C, x, S;
3886
+ const l = Qs(), r = (n == null ? void 0 : n.locale) ?? l.locale ?? gl, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((W = (k = n == null ? void 0 : n.locale) == null ? void 0 : k.options) == null ? void 0 : W.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((P = (G = l.locale) == null ? void 0 : G.options) == null ? void 0 : P.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((C = (O = n == null ? void 0 : n.locale) == null ? void 0 : O.options) == null ? void 0 : C.weekStartsOn) ?? l.weekStartsOn ?? ((S = (x = l.locale) == null ? void 0 : x.options) == null ? void 0 : S.weekStartsOn) ?? 0;
3886
3887
  if (a === "")
3887
3888
  return e === "" ? ve(t) : xe(t, NaN);
3888
3889
  const v = {
3889
3890
  firstWeekContainsDate: s,
3890
3891
  weekStartsOn: o,
3891
3892
  locale: r
3892
- }, b = [new ei()], w = a.match(Ni).map((h) => {
3893
+ }, w = [new ei()], _ = a.match(Ni).map((h) => {
3893
3894
  const N = h[0];
3894
3895
  if (N in cn) {
3895
3896
  const ee = cn[N];
@@ -3897,7 +3898,7 @@ function vn(e, a, t, n) {
3897
3898
  }
3898
3899
  return h;
3899
3900
  }).join("").match(Ii), u = [];
3900
- for (let h of w) {
3901
+ for (let h of _) {
3901
3902
  !(n != null && n.useAdditionalWeekYearTokens) && _l(h) && mn(h, a, e), !(n != null && n.useAdditionalDayOfYearTokens) && wl(h) && mn(h, a, e);
3902
3903
  const N = h[0], ee = Li[N];
3903
3904
  if (ee) {
@@ -3923,7 +3924,7 @@ function vn(e, a, t, n) {
3923
3924
  );
3924
3925
  if (!pe)
3925
3926
  return xe(t, NaN);
3926
- b.push(pe.setter), e = pe.rest;
3927
+ w.push(pe.setter), e = pe.rest;
3927
3928
  } else {
3928
3929
  if (N.match(Wi))
3929
3930
  throw new RangeError(
@@ -3937,20 +3938,20 @@ function vn(e, a, t, n) {
3937
3938
  }
3938
3939
  if (e.length > 0 && Hi.test(e))
3939
3940
  return xe(t, NaN);
3940
- const k = b.map((h) => h.priority).sort((h, N) => N - h).filter((h, N, ee) => ee.indexOf(h) === N).map(
3941
- (h) => b.filter((N) => N.priority === h).sort((N, ee) => ee.subPriority - N.subPriority)
3941
+ const g = w.map((h) => h.priority).sort((h, N) => N - h).filter((h, N, ee) => ee.indexOf(h) === N).map(
3942
+ (h) => w.filter((N) => N.priority === h).sort((N, ee) => ee.subPriority - N.subPriority)
3942
3943
  ).map((h) => h[0]);
3943
- let f = ve(t);
3944
- if (isNaN(f.getTime()))
3944
+ let p = ve(t);
3945
+ if (isNaN(p.getTime()))
3945
3946
  return xe(t, NaN);
3946
3947
  const D = {};
3947
- for (const h of k) {
3948
- if (!h.validate(f, v))
3948
+ for (const h of g) {
3949
+ if (!h.validate(p, v))
3949
3950
  return xe(t, NaN);
3950
- const N = h.set(f, D, v);
3951
- Array.isArray(N) ? (f = N[0], Object.assign(D, N[1])) : f = N;
3951
+ const N = h.set(p, D, v);
3952
+ Array.isArray(N) ? (p = N[0], Object.assign(D, N[1])) : p = N;
3952
3953
  }
3953
- return xe(t, f);
3954
+ return xe(t, p);
3954
3955
  }
3955
3956
  function zi(e) {
3956
3957
  return e.match(Fi)[1].replace(Vi, "'");
@@ -4004,14 +4005,14 @@ function qi(e, a) {
4004
4005
  hours: s = 0,
4005
4006
  minutes: o = 0,
4006
4007
  seconds: v = 0
4007
- } = a, b = la(e, n + t * 12), w = ji(b, r + l * 7), u = o + s * 60, f = (v + u * 60) * 1e3;
4008
- return xe(e, w.getTime() - f);
4008
+ } = a, w = la(e, n + t * 12), _ = ji(w, r + l * 7), u = o + s * 60, p = (v + u * 60) * 1e3;
4009
+ return xe(e, _.getTime() - p);
4009
4010
  }
4010
4011
  function Cl(e, a) {
4011
4012
  return hn(e, -a);
4012
4013
  }
4013
4014
  function sa() {
4014
- return p(), A(
4015
+ return f(), A(
4015
4016
  "svg",
4016
4017
  {
4017
4018
  xmlns: "http://www.w3.org/2000/svg",
@@ -4040,7 +4041,7 @@ sa.compatConfig = {
4040
4041
  MODE: 3
4041
4042
  };
4042
4043
  function Al() {
4043
- return p(), A(
4044
+ return f(), A(
4044
4045
  "svg",
4045
4046
  {
4046
4047
  xmlns: "http://www.w3.org/2000/svg",
@@ -4063,7 +4064,7 @@ Al.compatConfig = {
4063
4064
  MODE: 3
4064
4065
  };
4065
4066
  function Tn() {
4066
- return p(), A(
4067
+ return f(), A(
4067
4068
  "svg",
4068
4069
  {
4069
4070
  xmlns: "http://www.w3.org/2000/svg",
@@ -4083,7 +4084,7 @@ Tn.compatConfig = {
4083
4084
  MODE: 3
4084
4085
  };
4085
4086
  function Pn() {
4086
- return p(), A(
4087
+ return f(), A(
4087
4088
  "svg",
4088
4089
  {
4089
4090
  xmlns: "http://www.w3.org/2000/svg",
@@ -4103,7 +4104,7 @@ Pn.compatConfig = {
4103
4104
  MODE: 3
4104
4105
  };
4105
4106
  function xn() {
4106
- return p(), A(
4107
+ return f(), A(
4107
4108
  "svg",
4108
4109
  {
4109
4110
  xmlns: "http://www.w3.org/2000/svg",
@@ -4126,7 +4127,7 @@ xn.compatConfig = {
4126
4127
  MODE: 3
4127
4128
  };
4128
4129
  function $n() {
4129
- return p(), A(
4130
+ return f(), A(
4130
4131
  "svg",
4131
4132
  {
4132
4133
  xmlns: "http://www.w3.org/2000/svg",
@@ -4146,7 +4147,7 @@ $n.compatConfig = {
4146
4147
  MODE: 3
4147
4148
  };
4148
4149
  function Cn() {
4149
- return p(), A(
4150
+ return f(), A(
4150
4151
  "svg",
4151
4152
  {
4152
4153
  xmlns: "http://www.w3.org/2000/svg",
@@ -4448,13 +4449,13 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4448
4449
  Ye.actionRow
4449
4450
  ].filter((u) => u.length) : on.value ? [...Ye.monthPicker, Ye.actionRow] : [Ye.monthYear, ...Ye.calendar, Ye.time, Ye.actionRow].filter((u) => u.length)), a = (u) => {
4450
4451
  Ke.value = u ? Ke.value + 1 : Ke.value - 1;
4451
- let k = null;
4452
- e.value[He.value] && (k = e.value[He.value][Ke.value]), !k && e.value[He.value + (u ? 1 : -1)] ? (He.value = He.value + (u ? 1 : -1), Ke.value = u ? 0 : e.value[He.value].length - 1) : k || (Ke.value = u ? Ke.value - 1 : Ke.value + 1);
4452
+ let g = null;
4453
+ 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);
4453
4454
  }, t = (u) => {
4454
4455
  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);
4455
4456
  }, n = (u) => {
4456
- let k = null;
4457
- e.value[He.value] && (k = e.value[He.value][Ke.value]), k ? k.focus({ preventScroll: !Aa.value }) : Ke.value = u ? Ke.value - 1 : Ke.value + 1;
4457
+ let g = null;
4458
+ 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;
4458
4459
  }, l = () => {
4459
4460
  a(!0), n(!0);
4460
4461
  }, r = () => {
@@ -4463,37 +4464,37 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4463
4464
  t(!1), n(!0);
4464
4465
  }, o = () => {
4465
4466
  t(!0), n(!0);
4466
- }, v = (u, k) => {
4467
- Ye[k] = u;
4468
- }, b = (u, k) => {
4469
- Ye[k] = u;
4470
- }, w = () => {
4467
+ }, v = (u, g) => {
4468
+ Ye[g] = u;
4469
+ }, w = (u, g) => {
4470
+ Ye[g] = u;
4471
+ }, _ = () => {
4471
4472
  Ke.value = 0, He.value = 0;
4472
4473
  };
4473
4474
  return {
4474
4475
  buildMatrix: v,
4475
- buildMultiLevelMatrix: b,
4476
+ buildMultiLevelMatrix: w,
4476
4477
  setTimePickerBackRef: (u) => {
4477
4478
  ln.value = u;
4478
4479
  },
4479
4480
  setSelectionGrid: (u) => {
4480
- Aa.value = u, w(), u || (Ye.selectionGrid = []);
4481
+ Aa.value = u, _(), u || (Ye.selectionGrid = []);
4481
4482
  },
4482
- setTimePicker: (u, k = !1) => {
4483
- rn.value = u, sn.value = k, w(), u || (Ye.timePicker[0] = [], Ye.timePicker[1] = []);
4483
+ setTimePicker: (u, g = !1) => {
4484
+ rn.value = u, sn.value = g, _(), u || (Ye.timePicker[0] = [], Ye.timePicker[1] = []);
4484
4485
  },
4485
- setTimePickerElements: (u, k = 0) => {
4486
- Ye.timePicker[k] = u;
4486
+ setTimePickerElements: (u, g = 0) => {
4487
+ Ye.timePicker[g] = u;
4487
4488
  },
4488
4489
  arrowRight: l,
4489
4490
  arrowLeft: r,
4490
4491
  arrowUp: s,
4491
4492
  arrowDown: o,
4492
4493
  clearArrowNav: () => {
4493
- Ye.monthYear = [], Ye.calendar = [], Ye.time = [], Ye.actionRow = [], Ye.selectionGrid = [], Ye.timePicker[0] = [], Ye.timePicker[1] = [], Aa.value = !1, rn.value = !1, sn.value = !1, on.value = !1, w(), ln.value = null;
4494
+ Ye.monthYear = [], Ye.calendar = [], Ye.time = [], Ye.actionRow = [], Ye.selectionGrid = [], Ye.timePicker[0] = [], Ye.timePicker[1] = [], Aa.value = !1, rn.value = !1, sn.value = !1, on.value = !1, _(), ln.value = null;
4494
4495
  },
4495
4496
  setMonthPicker: (u) => {
4496
- on.value = u, w();
4497
+ on.value = u, _();
4497
4498
  },
4498
4499
  refSets: Ye
4499
4500
  // exposed for testing
@@ -4638,15 +4639,15 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4638
4639
  }, t = () => {
4639
4640
  var x;
4640
4641
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? a() : e.weekPicker ? `${((x = W.value) == null ? void 0 : x.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${a()}` : "MM/dd/yyyy";
4641
- }, n = (x) => Nl(x, e.enableSeconds), l = () => C.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, r = H(() => vu(e.multiCalendars)), s = H(() => l()), o = H(() => mu(e.ariaLabels)), v = H(() => yu(e.filters)), b = H(() => fu(e.transitions)), w = H(() => gu(e.actionRow)), u = H(
4642
+ }, n = (x) => Nl(x, e.enableSeconds), l = () => C.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, r = H(() => vu(e.multiCalendars)), s = H(() => l()), o = H(() => mu(e.ariaLabels)), v = H(() => yu(e.filters)), w = H(() => fu(e.transitions)), _ = H(() => gu(e.actionRow)), u = H(
4642
4643
  () => pu(e.previewFormat, e.format, t())
4643
- ), k = H(() => hu(e.textInput)), f = H(() => bu(e.inline)), D = H(() => wu(e.config)), _ = H(() => _u(e.highlight)), W = H(() => ku(e.weekNumbers)), G = H(() => Du(e.timezone, e.emitTimezone)), P = H(() => xu(e.multiDates, e.multiDatesLimit)), R = H(
4644
+ ), g = H(() => hu(e.textInput)), p = H(() => bu(e.inline)), D = H(() => wu(e.config)), k = H(() => _u(e.highlight)), W = H(() => ku(e.weekNumbers)), G = H(() => Du(e.timezone, e.emitTimezone)), P = H(() => xu(e.multiDates, e.multiDatesLimit)), O = H(
4644
4645
  () => Pu(
4645
4646
  e.minDate,
4646
4647
  e.maxDate,
4647
4648
  e.disabledDates,
4648
4649
  e.allowedDates,
4649
- _.value,
4650
+ k.value,
4650
4651
  e.markers,
4651
4652
  G.value
4652
4653
  )
@@ -4665,27 +4666,27 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4665
4666
  })
4666
4667
  );
4667
4668
  return {
4668
- defaultedTransitions: b,
4669
+ defaultedTransitions: w,
4669
4670
  defaultedMultiCalendars: r,
4670
4671
  defaultedStartTime: s,
4671
4672
  defaultedAriaLabels: o,
4672
4673
  defaultedFilters: v,
4673
- defaultedActionRow: w,
4674
+ defaultedActionRow: _,
4674
4675
  defaultedPreviewFormat: u,
4675
- defaultedTextInput: k,
4676
- defaultedInline: f,
4676
+ defaultedTextInput: g,
4677
+ defaultedInline: p,
4677
4678
  defaultedConfig: D,
4678
- defaultedHighlight: _,
4679
+ defaultedHighlight: k,
4679
4680
  defaultedWeekNumbers: W,
4680
4681
  defaultedRange: C,
4681
- propDates: R,
4682
+ propDates: O,
4682
4683
  defaultedTz: G,
4683
4684
  defaultedMultiDates: P,
4684
4685
  getDefaultPattern: t,
4685
4686
  getDefaultStartTime: l
4686
4687
  };
4687
4688
  }, $u = (e, a, t) => {
4688
- const n = U(), { defaultedTextInput: l, defaultedRange: r, defaultedTz: s, defaultedMultiDates: o, getDefaultPattern: v } = Ie(a), b = U(""), w = ga(a, "format"), u = ga(a, "formatLocale");
4689
+ const n = U(), { defaultedTextInput: l, defaultedRange: r, defaultedTz: s, defaultedMultiDates: o, getDefaultPattern: v } = Ie(a), w = U(""), _ = ga(a, "format"), u = ga(a, "formatLocale");
4689
4690
  dt(
4690
4691
  n,
4691
4692
  () => {
@@ -4694,10 +4695,10 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4694
4695
  { deep: !0 }
4695
4696
  ), dt(r, (y, ue) => {
4696
4697
  y.enabled !== ue.enabled && (n.value = null);
4697
- }), dt(w, () => {
4698
+ }), dt(_, () => {
4698
4699
  Q();
4699
4700
  });
4700
- const k = (y) => s.value.timezone && s.value.convertModel ? Pt(y, s.value.timezone) : y, f = (y) => {
4701
+ const g = (y) => s.value.timezone && s.value.convertModel ? Pt(y, s.value.timezone) : y, p = (y) => {
4701
4702
  if (s.value.timezone && s.value.convertModel) {
4702
4703
  const ue = Gi(s.value.timezone);
4703
4704
  return Jo(y, ue);
@@ -4711,7 +4712,7 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4711
4712
  a.modelAuto,
4712
4713
  ue ?? v(),
4713
4714
  ge
4714
- ), _ = (y) => y ? a.modelType ? me(y) : {
4715
+ ), k = (y) => y ? a.modelType ? me(y) : {
4715
4716
  hours: Ct(y),
4716
4717
  minutes: Lt(y),
4717
4718
  seconds: a.enableSeconds ? aa(y) : 0
@@ -4721,7 +4722,7 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4721
4722
  y[1] ? Mt(q(), y[1]) : Xt(r.value.partialRange)
4722
4723
  ],
4723
4724
  r.value.enabled
4724
- ) : Mt(q(), +y), P = (y, ue) => (typeof y == "string" || typeof y == "number") && a.modelType ? re(y) : ue, R = (y) => Array.isArray(y) ? [
4725
+ ) : Mt(q(), +y), P = (y, ue) => (typeof y == "string" || typeof y == "number") && a.modelType ? re(y) : ue, O = (y) => Array.isArray(y) ? [
4725
4726
  P(
4726
4727
  y[0],
4727
4728
  Bt(null, +y[0].hours, +y[0].minutes, y[0].seconds)
@@ -4769,25 +4770,25 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4769
4770
  me(y[0]),
4770
4771
  y[1] ? me(y[1]) : Xt(r.value.partialRange)
4771
4772
  ];
4772
- }, se = () => n.value[1] ? ee() : me(Ge(n.value[0])), pe = () => (n.value || []).map((y) => me(y)), L = (y = !1) => (y || N(), a.modelAuto ? se() : o.value.enabled ? pe() : Array.isArray(n.value) ? Ca(() => ee(), r.value.enabled) : me(Ge(n.value))), V = (y) => !y || Array.isArray(y) && !y.length ? null : a.timePicker ? R(Ge(y)) : a.monthPicker ? C(Ge(y)) : a.yearPicker ? G(Ge(y)) : o.value.enabled ? x(Ge(y)) : a.weekPicker ? S(Ge(y)) : h(Ge(y)), oe = (y) => {
4773
+ }, se = () => n.value[1] ? ee() : me(Ge(n.value[0])), pe = () => (n.value || []).map((y) => me(y)), L = (y = !1) => (y || N(), a.modelAuto ? se() : o.value.enabled ? pe() : Array.isArray(n.value) ? Ca(() => ee(), r.value.enabled) : me(Ge(n.value))), V = (y) => !y || Array.isArray(y) && !y.length ? null : a.timePicker ? O(Ge(y)) : a.monthPicker ? C(Ge(y)) : a.yearPicker ? G(Ge(y)) : o.value.enabled ? x(Ge(y)) : a.weekPicker ? S(Ge(y)) : h(Ge(y)), oe = (y) => {
4773
4774
  const ue = V(y);
4774
- fn(Ge(ue)) ? (n.value = Ge(ue), Q()) : (n.value = null, b.value = "");
4775
+ fn(Ge(ue)) ? (n.value = Ge(ue), Q()) : (n.value = null, w.value = "");
4775
4776
  }, m = () => {
4776
4777
  const y = (ue) => Tt(ue, l.value.format);
4777
4778
  return `${y(n.value[0])} ${l.value.rangeSeparator} ${n.value[1] ? y(n.value[1]) : ""}`;
4778
- }, g = () => t.value && n.value ? Array.isArray(n.value) ? m() : Tt(n.value, l.value.format) : D(n.value), $ = () => n.value ? o.value.enabled ? n.value.map((y) => D(y)).join("; ") : l.value.enabled && typeof l.value.format == "string" ? g() : D(n.value) : "", Q = () => {
4779
- !a.format || typeof a.format == "string" || l.value.enabled && typeof l.value.format == "string" ? b.value = $() : b.value = a.format(n.value);
4779
+ }, b = () => t.value && n.value ? Array.isArray(n.value) ? m() : Tt(n.value, l.value.format) : D(n.value), $ = () => n.value ? o.value.enabled ? n.value.map((y) => D(y)).join("; ") : l.value.enabled && typeof l.value.format == "string" ? b() : D(n.value) : "", Q = () => {
4780
+ !a.format || typeof a.format == "string" || l.value.enabled && typeof l.value.format == "string" ? w.value = $() : w.value = a.format(n.value);
4780
4781
  }, re = (y) => {
4781
4782
  if (a.utc) {
4782
4783
  const ue = new Date(y);
4783
4784
  return a.utc === "preserve" ? new Date(ue.getTime() + ue.getTimezoneOffset() * 6e4) : ue;
4784
4785
  }
4785
- return a.modelType ? Qi.includes(a.modelType) ? k(new Date(y)) : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? k(
4786
+ return a.modelType ? Qi.includes(a.modelType) ? g(new Date(y)) : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? g(
4786
4787
  vn(y, v(), /* @__PURE__ */ new Date(), { locale: u.value })
4787
- ) : k(
4788
+ ) : g(
4788
4789
  vn(y, a.modelType, /* @__PURE__ */ new Date(), { locale: u.value })
4789
- ) : k(new Date(y));
4790
- }, me = (y) => y ? a.utc ? ou(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) ? D(f(y)) : D(f(y), a.modelType, !0) : f(y) : "", Y = (y, ue = !1, ge = !1) => {
4790
+ ) : g(new Date(y));
4791
+ }, me = (y) => y ? a.utc ? ou(y, a.utc === "preserve", a.enableSeconds) : a.modelType ? a.modelType === "timestamp" ? +p(y) : a.modelType === "iso" ? p(y).toISOString() : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? D(p(y)) : D(p(y), a.modelType, !0) : p(y) : "", Y = (y, ue = !1, ge = !1) => {
4791
4792
  if (ge)
4792
4793
  return y;
4793
4794
  if (e("update:model-value", y), s.value.emitTimezone && ue) {
@@ -4806,9 +4807,9 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4806
4807
  }, E = (y, ue) => Y(Ge(B(y)), !1, ue), le = (y) => {
4807
4808
  const ue = i();
4808
4809
  return y ? ue : e("update:model-value", i());
4809
- }, te = (y = !1) => (y || Q(), a.monthPicker ? E(W, y) : a.timePicker ? E(_, y) : a.yearPicker ? E(we, y) : a.weekPicker ? le(y) : Y(L(y), !0, y));
4810
+ }, te = (y = !1) => (y || Q(), a.monthPicker ? E(W, y) : a.timePicker ? E(k, y) : a.yearPicker ? E(we, y) : a.weekPicker ? le(y) : Y(L(y), !0, y));
4810
4811
  return {
4811
- inputValue: b,
4812
+ inputValue: w,
4812
4813
  internalModelValue: n,
4813
4814
  checkBeforeEmit: () => n.value ? r.value.enabled ? r.value.partialRange ? n.value.length >= 1 : n.value.length === 2 : !!n.value : !1,
4814
4815
  parseExternalModelValue: oe,
@@ -4816,28 +4817,28 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4816
4817
  emitModelValue: te
4817
4818
  };
4818
4819
  }, Cu = (e, a) => {
4819
- const { defaultedFilters: t, propDates: n } = Ie(e), { validateMonthYearInRange: l } = Ft(e), r = (w, u) => {
4820
- let k = w;
4821
- return t.value.months.includes(Me(k)) ? (k = u ? yt(w, 1) : la(w, 1), r(k, u)) : k;
4822
- }, s = (w, u) => {
4823
- let k = w;
4824
- return t.value.years.includes(we(k)) ? (k = u ? hn(w, 1) : Cl(w, 1), s(k, u)) : k;
4825
- }, o = (w, u = !1) => {
4826
- const k = Oe(q(), { month: e.month, year: e.year });
4827
- let f = w ? yt(k, 1) : la(k, 1);
4828
- e.disableYearSelect && (f = Mt(f, e.year));
4829
- let D = Me(f), _ = we(f);
4830
- t.value.months.includes(D) && (f = r(f, w), D = Me(f), _ = we(f)), t.value.years.includes(_) && (f = s(f, w), _ = we(f)), l(D, _, w, e.preventMinMaxNavigation) && v(D, _, u);
4831
- }, v = (w, u, k) => {
4832
- a("update-month-year", { month: w, year: u, fromNav: k });
4833
- }, b = H(() => (w) => Fl(
4820
+ const { defaultedFilters: t, propDates: n } = Ie(e), { validateMonthYearInRange: l } = Ft(e), r = (_, u) => {
4821
+ let g = _;
4822
+ return t.value.months.includes(Me(g)) ? (g = u ? yt(_, 1) : la(_, 1), r(g, u)) : g;
4823
+ }, s = (_, u) => {
4824
+ let g = _;
4825
+ return t.value.years.includes(we(g)) ? (g = u ? hn(_, 1) : Cl(_, 1), s(g, u)) : g;
4826
+ }, o = (_, u = !1) => {
4827
+ const g = Oe(q(), { month: e.month, year: e.year });
4828
+ let p = _ ? yt(g, 1) : la(g, 1);
4829
+ e.disableYearSelect && (p = Mt(p, e.year));
4830
+ let D = Me(p), k = we(p);
4831
+ t.value.months.includes(D) && (p = r(p, _), D = Me(p), k = we(p)), t.value.years.includes(k) && (p = s(p, _), k = we(p)), l(D, k, _, e.preventMinMaxNavigation) && v(D, k, u);
4832
+ }, v = (_, u, g) => {
4833
+ a("update-month-year", { month: _, year: u, fromNav: g });
4834
+ }, w = H(() => (_) => Fl(
4834
4835
  Oe(q(), { month: e.month, year: e.year }),
4835
4836
  n.value.maxDate,
4836
4837
  n.value.minDate,
4837
4838
  e.preventMinMaxNavigation,
4838
- w
4839
+ _
4839
4840
  ));
4840
- return { handleMonthYearChange: o, isDisabled: b, updateMonthYear: v };
4841
+ return { handleMonthYearChange: o, isDisabled: w, updateMonthYear: v };
4841
4842
  };
4842
4843
  var Zt = /* @__PURE__ */ ((e) => (e.center = "center", e.left = "left", e.right = "right", e))(Zt || {});
4843
4844
  const Au = ({
@@ -4850,75 +4851,75 @@ const Au = ({
4850
4851
  props: s,
4851
4852
  slots: o
4852
4853
  }) => {
4853
- const v = U({}), b = U(!1), w = U({
4854
+ const v = U({}), w = U(!1), _ = U({
4854
4855
  top: "0",
4855
4856
  left: "0"
4856
- }), u = U(!1), k = ga(s, "teleportCenter");
4857
- dt(k, () => {
4858
- w.value = JSON.parse(JSON.stringify({})), C();
4857
+ }), u = U(!1), g = ga(s, "teleportCenter");
4858
+ dt(g, () => {
4859
+ _.value = JSON.parse(JSON.stringify({})), C();
4859
4860
  });
4860
- const f = (m) => {
4861
+ const p = (m) => {
4861
4862
  if (s.teleport) {
4862
- const g = m.getBoundingClientRect();
4863
+ const b = m.getBoundingClientRect();
4863
4864
  return {
4864
- left: g.left + window.scrollX,
4865
- top: g.top + window.scrollY
4865
+ left: b.left + window.scrollX,
4866
+ top: b.top + window.scrollY
4866
4867
  };
4867
4868
  }
4868
4869
  return { top: 0, left: 0 };
4869
- }, D = (m, g) => {
4870
- w.value.left = `${m + g - v.value.width}px`;
4871
- }, _ = (m) => {
4872
- w.value.left = `${m}px`;
4873
- }, W = (m, g) => {
4874
- s.position === Zt.left && _(m), s.position === Zt.right && D(m, g), s.position === Zt.center && (w.value.left = `${m + g / 2 - v.value.width / 2}px`);
4870
+ }, D = (m, b) => {
4871
+ _.value.left = `${m + b - v.value.width}px`;
4872
+ }, k = (m) => {
4873
+ _.value.left = `${m}px`;
4874
+ }, W = (m, b) => {
4875
+ s.position === Zt.left && k(m), s.position === Zt.right && D(m, b), s.position === Zt.center && (_.value.left = `${m + b / 2 - v.value.width / 2}px`);
4875
4876
  }, G = (m) => {
4876
- const { width: g, height: $ } = m.getBoundingClientRect(), { top: Q, left: re } = s.altPosition ? s.altPosition(m) : f(m);
4877
- return { top: +Q, left: +re, width: g, height: $ };
4877
+ const { width: b, height: $ } = m.getBoundingClientRect(), { top: Q, left: re } = s.altPosition ? s.altPosition(m) : p(m);
4878
+ return { top: +Q, left: +re, width: b, height: $ };
4878
4879
  }, P = () => {
4879
- w.value.left = "50%", w.value.top = "50%", w.value.transform = "translate(-50%, -50%)", w.value.position = "fixed", delete w.value.opacity;
4880
- }, R = () => {
4881
- const m = qe(t), { top: g, left: $, transform: Q } = s.altPosition(m);
4882
- w.value = { top: `${g}px`, left: `${$}px`, transform: Q ?? "" };
4880
+ _.value.left = "50%", _.value.top = "50%", _.value.transform = "translate(-50%, -50%)", _.value.position = "fixed", delete _.value.opacity;
4881
+ }, O = () => {
4882
+ const m = qe(t), { top: b, left: $, transform: Q } = s.altPosition(m);
4883
+ _.value = { top: `${b}px`, left: `${$}px`, transform: Q ?? "" };
4883
4884
  }, C = (m = !0) => {
4884
- var g;
4885
+ var b;
4885
4886
  if (!l.value.enabled) {
4886
- if (k.value)
4887
+ if (g.value)
4887
4888
  return P();
4888
4889
  if (s.altPosition !== null)
4889
- return R();
4890
+ return O();
4890
4891
  if (m) {
4891
- const $ = s.teleport ? (g = a.value) == null ? void 0 : g.$el : e.value;
4892
+ const $ = s.teleport ? (b = a.value) == null ? void 0 : b.$el : e.value;
4892
4893
  $ && (v.value = $.getBoundingClientRect()), r("recalculate-position");
4893
4894
  }
4894
4895
  return pe();
4895
4896
  }
4896
- }, x = ({ inputEl: m, left: g, width: $ }) => {
4897
- window.screen.width > 768 && !b.value && W(g, $), N(m);
4897
+ }, x = ({ inputEl: m, left: b, width: $ }) => {
4898
+ window.screen.width > 768 && !w.value && W(b, $), N(m);
4898
4899
  }, S = (m) => {
4899
- const { top: g, left: $, height: Q, width: re } = G(m);
4900
- w.value.top = `${Q + g + +s.offset}px`, u.value = !1, b.value || (w.value.left = `${$ + re / 2 - v.value.width / 2}px`), x({ inputEl: m, left: $, width: re });
4900
+ const { top: b, left: $, height: Q, width: re } = G(m);
4901
+ _.value.top = `${Q + b + +s.offset}px`, u.value = !1, w.value || (_.value.left = `${$ + re / 2 - v.value.width / 2}px`), x({ inputEl: m, left: $, width: re });
4901
4902
  }, h = (m) => {
4902
- const { top: g, left: $, width: Q } = G(m);
4903
- w.value.top = `${g - +s.offset - v.value.height}px`, u.value = !0, x({ inputEl: m, left: $, width: Q });
4903
+ const { top: b, left: $, width: Q } = G(m);
4904
+ _.value.top = `${b - +s.offset - v.value.height}px`, u.value = !0, x({ inputEl: m, left: $, width: Q });
4904
4905
  }, N = (m) => {
4905
4906
  if (s.autoPosition) {
4906
- const { left: g, width: $ } = G(m), { left: Q, right: re } = v.value;
4907
- if (!b.value) {
4907
+ const { left: b, width: $ } = G(m), { left: Q, right: re } = v.value;
4908
+ if (!w.value) {
4908
4909
  if (Math.abs(Q) !== Math.abs(re)) {
4909
4910
  if (Q <= 0)
4910
- return b.value = !0, _(g);
4911
+ return w.value = !0, k(b);
4911
4912
  if (re >= document.documentElement.clientWidth)
4912
- return b.value = !0, D(g, $);
4913
+ return w.value = !0, D(b, $);
4913
4914
  }
4914
- return W(g, $);
4915
+ return W(b, $);
4915
4916
  }
4916
4917
  }
4917
4918
  }, ee = () => {
4918
4919
  const m = qe(t);
4919
4920
  if (m) {
4920
- const { height: g } = v.value, { top: $, height: Q } = m.getBoundingClientRect(), re = window.innerHeight - $ - Q, me = $;
4921
- return g <= re ? Ht.bottom : g > re && g <= me ? Ht.top : re >= me ? Ht.bottom : Ht.top;
4921
+ const { height: b } = v.value, { top: $, height: Q } = m.getBoundingClientRect(), re = window.innerHeight - $ - Q, me = $;
4922
+ return b <= re ? Ht.bottom : b > re && b <= me ? Ht.top : re >= me ? Ht.bottom : Ht.top;
4922
4923
  }
4923
4924
  return Ht.bottom;
4924
4925
  }, se = (m) => ee() === Ht.bottom ? S(m) : h(m), pe = () => {
@@ -4927,8 +4928,8 @@ const Au = ({
4927
4928
  return s.autoPosition ? se(m) : S(m);
4928
4929
  }, L = function(m) {
4929
4930
  if (m) {
4930
- const g = m.scrollHeight > m.clientHeight, $ = window.getComputedStyle(m).overflowY.indexOf("hidden") !== -1;
4931
- return g && !$;
4931
+ const b = m.scrollHeight > m.clientHeight, $ = window.getComputedStyle(m).overflowY.indexOf("hidden") !== -1;
4932
+ return b && !$;
4932
4933
  }
4933
4934
  return !0;
4934
4935
  }, V = function(m) {
@@ -4947,11 +4948,11 @@ const Au = ({
4947
4948
  };
4948
4949
  return {
4949
4950
  openOnTop: u,
4950
- menuStyle: w,
4951
- xCorrect: b,
4951
+ menuStyle: _,
4952
+ xCorrect: w,
4952
4953
  setMenuPosition: C,
4953
4954
  getScrollableParent: V,
4954
- shadowRender: (m, g) => {
4955
+ shadowRender: (m, b) => {
4955
4956
  var $, Q, re;
4956
4957
  const me = document.createElement("div"), Y = ($ = qe(t)) == null ? void 0 : $.getBoundingClientRect();
4957
4958
  me.setAttribute("id", "dp--temp-container");
@@ -4960,7 +4961,7 @@ const Au = ({
4960
4961
  const i = oe(Y), E = tr(
4961
4962
  m,
4962
4963
  {
4963
- ...g,
4964
+ ...b,
4964
4965
  shadow: !0,
4965
4966
  style: { opacity: 0, position: "absolute", ...i }
4966
4967
  },
@@ -5032,12 +5033,12 @@ const Au = ({
5032
5033
  return { transitionName: a, showTransition: !!e.value, menuTransition: t };
5033
5034
  }, Da = (e, a) => {
5034
5035
  const { defaultedRange: t, defaultedTz: n } = Ie(e), l = q(Pt(q(), n.value.timezone)), r = U([{ month: Me(l), year: we(l) }]), s = (u) => {
5035
- const k = {
5036
+ const g = {
5036
5037
  hours: Ct(l),
5037
5038
  minutes: Lt(l),
5038
5039
  seconds: 0
5039
5040
  };
5040
- return t.value.enabled ? [k[u], k[u]] : k[u];
5041
+ return t.value.enabled ? [g[u], g[u]] : g[u];
5041
5042
  }, o = _a({
5042
5043
  hours: s("hours"),
5043
5044
  minutes: s("minutes"),
@@ -5045,8 +5046,8 @@ const Au = ({
5045
5046
  });
5046
5047
  dt(
5047
5048
  t,
5048
- (u, k) => {
5049
- u.enabled !== k.enabled && (o.hours = s("hours"), o.minutes = s("minutes"), o.seconds = s("seconds"));
5049
+ (u, g) => {
5050
+ u.enabled !== g.enabled && (o.hours = s("hours"), o.minutes = s("minutes"), o.seconds = s("seconds"));
5050
5051
  },
5051
5052
  { deep: !0 }
5052
5053
  );
@@ -5055,42 +5056,42 @@ const Au = ({
5055
5056
  set: (u) => {
5056
5057
  !e.readonly && !e.disabled && a("update:internal-model-value", u);
5057
5058
  }
5058
- }), b = H(
5059
+ }), w = H(
5059
5060
  () => (u) => r.value[u] ? r.value[u].month : 0
5060
- ), w = H(
5061
+ ), _ = H(
5061
5062
  () => (u) => r.value[u] ? r.value[u].year : 0
5062
5063
  );
5063
5064
  return {
5064
5065
  calendars: r,
5065
5066
  time: o,
5066
5067
  modelValue: v,
5067
- month: b,
5068
- year: w,
5068
+ month: w,
5069
+ year: _,
5069
5070
  today: l
5070
5071
  };
5071
5072
  }, Su = (e, a) => {
5072
- const { defaultedMultiCalendars: t, defaultedMultiDates: n, defaultedHighlight: l, defaultedTz: r, propDates: s, defaultedRange: o } = Ie(a), { isDisabled: v } = Ft(a), b = U(null), w = U(Pt(/* @__PURE__ */ new Date(), r.value.timezone)), u = (i) => {
5073
- !i.current && a.hideOffsetDates || (b.value = i.value);
5074
- }, k = () => {
5075
- b.value = null;
5076
- }, f = (i) => Array.isArray(e.value) && o.value.enabled && e.value[0] && b.value ? i ? We(b.value, e.value[0]) : Ne(b.value, e.value[0]) : !0, D = (i, E) => {
5073
+ const { defaultedMultiCalendars: t, defaultedMultiDates: n, defaultedHighlight: l, defaultedTz: r, propDates: s, defaultedRange: o } = Ie(a), { isDisabled: v } = Ft(a), w = U(null), _ = U(Pt(/* @__PURE__ */ new Date(), r.value.timezone)), u = (i) => {
5074
+ !i.current && a.hideOffsetDates || (w.value = i.value);
5075
+ }, g = () => {
5076
+ w.value = null;
5077
+ }, p = (i) => Array.isArray(e.value) && o.value.enabled && e.value[0] && w.value ? i ? We(w.value, e.value[0]) : Ne(w.value, e.value[0]) : !0, D = (i, E) => {
5077
5078
  const le = () => e.value ? E ? e.value[0] || null : e.value[1] : null, te = e.value && Array.isArray(e.value) ? le() : null;
5078
5079
  return De(q(i.value), te);
5079
- }, _ = (i) => {
5080
+ }, k = (i) => {
5080
5081
  const E = Array.isArray(e.value) ? e.value[0] : null;
5081
- return i ? !Ne(b.value ?? null, E) : !0;
5082
- }, W = (i, E = !0) => (o.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !i.current ? !1 : De(q(i.value), e.value[E ? 0 : 1]) : o.value.enabled ? D(i, E) && _(E) || De(i.value, Array.isArray(e.value) ? e.value[0] : null) && f(E) : !1, G = (i, E) => {
5082
+ return i ? !Ne(w.value ?? null, E) : !0;
5083
+ }, W = (i, E = !0) => (o.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !i.current ? !1 : De(q(i.value), e.value[E ? 0 : 1]) : o.value.enabled ? D(i, E) && k(E) || De(i.value, Array.isArray(e.value) ? e.value[0] : null) && p(E) : !1, G = (i, E) => {
5083
5084
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
5084
- const le = De(i.value, b.value);
5085
+ const le = De(i.value, w.value);
5085
5086
  return E ? We(e.value[0], i.value) && le : Ne(e.value[0], i.value) && le;
5086
5087
  }
5087
5088
  return !1;
5088
- }, P = (i) => !e.value || a.hideOffsetDates && !i.current ? !1 : o.value.enabled ? a.modelAuto && Array.isArray(e.value) ? De(i.value, e.value[0] ? e.value[0] : w.value) : !1 : n.value.enabled && Array.isArray(e.value) ? e.value.some((E) => De(E, i.value)) : De(i.value, e.value ? e.value : w.value), R = (i) => {
5089
+ }, P = (i) => !e.value || a.hideOffsetDates && !i.current ? !1 : o.value.enabled ? a.modelAuto && Array.isArray(e.value) ? De(i.value, e.value[0] ? e.value[0] : _.value) : !1 : n.value.enabled && Array.isArray(e.value) ? e.value.some((E) => De(E, i.value)) : De(i.value, e.value ? e.value : _.value), O = (i) => {
5089
5090
  if (o.value.autoRange || a.weekPicker) {
5090
- if (b.value) {
5091
+ if (w.value) {
5091
5092
  if (a.hideOffsetDates && !i.current)
5092
5093
  return !1;
5093
- const E = ft(b.value, +o.value.autoRange), le = xt(q(b.value), a.weekStart);
5094
+ const E = ft(w.value, +o.value.autoRange), le = xt(q(w.value), a.weekStart);
5094
5095
  return a.weekPicker ? De(le[1], q(i.value)) : De(E, q(i.value));
5095
5096
  }
5096
5097
  return !1;
@@ -5098,28 +5099,28 @@ const Au = ({
5098
5099
  return !1;
5099
5100
  }, C = (i) => {
5100
5101
  if (o.value.autoRange || a.weekPicker) {
5101
- if (b.value) {
5102
- const E = ft(b.value, +o.value.autoRange);
5102
+ if (w.value) {
5103
+ const E = ft(w.value, +o.value.autoRange);
5103
5104
  if (a.hideOffsetDates && !i.current)
5104
5105
  return !1;
5105
- const le = xt(q(b.value), a.weekStart);
5106
- return a.weekPicker ? We(i.value, le[0]) && Ne(i.value, le[1]) : We(i.value, b.value) && Ne(i.value, E);
5106
+ const le = xt(q(w.value), a.weekStart);
5107
+ return a.weekPicker ? We(i.value, le[0]) && Ne(i.value, le[1]) : We(i.value, w.value) && Ne(i.value, E);
5107
5108
  }
5108
5109
  return !1;
5109
5110
  }
5110
5111
  return !1;
5111
5112
  }, x = (i) => {
5112
5113
  if (o.value.autoRange || a.weekPicker) {
5113
- if (b.value) {
5114
+ if (w.value) {
5114
5115
  if (a.hideOffsetDates && !i.current)
5115
5116
  return !1;
5116
- const E = xt(q(b.value), a.weekStart);
5117
- return a.weekPicker ? De(E[0], i.value) : De(b.value, i.value);
5117
+ const E = xt(q(w.value), a.weekStart);
5118
+ return a.weekPicker ? De(E[0], i.value) : De(w.value, i.value);
5118
5119
  }
5119
5120
  return !1;
5120
5121
  }
5121
5122
  return !1;
5122
- }, S = (i) => La(e.value, b.value, i.value), h = () => a.modelAuto && Array.isArray(a.internalModelValue) ? !!a.internalModelValue[0] : !1, N = () => a.modelAuto ? Sl(a.internalModelValue) : !0, ee = (i) => {
5123
+ }, S = (i) => La(e.value, w.value, i.value), h = () => a.modelAuto && Array.isArray(a.internalModelValue) ? !!a.internalModelValue[0] : !1, N = () => a.modelAuto ? Sl(a.internalModelValue) : !0, ee = (i) => {
5123
5124
  if (a.weekPicker)
5124
5125
  return !1;
5125
5126
  const E = o.value.enabled ? !W(i) && !W(i, !1) : !0;
@@ -5138,11 +5139,11 @@ const Au = ({
5138
5139
  dp__cell_disabled: v(i.value),
5139
5140
  dp__cell_highlight: !L(i) && (pe(i) || V(i)) && !se(i) && !te && !x(i) && !(oe(i) && a.weekPicker) && !le,
5140
5141
  dp__cell_highlight_active: !L(i) && (pe(i) || V(i)) && se(i),
5141
- dp__today: !a.noToday && De(i.value, w.value) && i.current,
5142
- "dp--past": Ne(i.value, w.value),
5143
- "dp--future": We(i.value, w.value)
5142
+ dp__today: !a.noToday && De(i.value, _.value) && i.current,
5143
+ "dp--past": Ne(i.value, _.value),
5144
+ "dp--future": We(i.value, _.value)
5144
5145
  };
5145
- }, g = (i) => ({
5146
+ }, b = (i) => ({
5146
5147
  dp__active_date: se(i),
5147
5148
  dp__date_hover: ee(i)
5148
5149
  }), $ = (i) => {
@@ -5181,7 +5182,7 @@ const Au = ({
5181
5182
  dp__range_start: E,
5182
5183
  dp__range_end: le,
5183
5184
  dp__range_between: oe(i),
5184
- dp__date_hover: De(i.value, b.value) && !E && !le && !a.weekPicker,
5185
+ dp__date_hover: De(i.value, w.value) && !E && !le && !a.weekPicker,
5185
5186
  dp__date_hover_start: G(i, !0),
5186
5187
  dp__date_hover_end: G(i, !1)
5187
5188
  };
@@ -5189,11 +5190,11 @@ const Au = ({
5189
5190
  ...me(i),
5190
5191
  dp__cell_auto_range: C(i),
5191
5192
  dp__cell_auto_range_start: x(i),
5192
- dp__cell_auto_range_end: R(i)
5193
- }), B = (i) => o.value.enabled ? o.value.autoRange ? Y(i) : a.modelAuto ? { ...g(i), ...me(i) } : a.weekPicker ? Q(i) : me(i) : a.weekPicker ? $(i) : g(i);
5193
+ dp__cell_auto_range_end: O(i)
5194
+ }), B = (i) => o.value.enabled ? o.value.autoRange ? Y(i) : a.modelAuto ? { ...b(i), ...me(i) } : a.weekPicker ? Q(i) : me(i) : a.weekPicker ? $(i) : b(i);
5194
5195
  return {
5195
5196
  setHoverDate: u,
5196
- clearHoverDate: k,
5197
+ clearHoverDate: g,
5197
5198
  getDayClassData: (i) => a.hideOffsetDates && !i.current ? {} : {
5198
5199
  ...m(i),
5199
5200
  ...B(i),
@@ -5203,23 +5204,23 @@ const Au = ({
5203
5204
  };
5204
5205
  }, Ft = (e) => {
5205
5206
  const { defaultedFilters: a, defaultedRange: t, propDates: n, defaultedMultiDates: l } = Ie(e), r = (L) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(q(L)) : !!Sa(L, n.value.disabledDates) : !1, s = (L) => {
5206
- const V = n.value.maxDate ? We(L, n.value.maxDate) : !1, oe = n.value.minDate ? Ne(L, n.value.minDate) : !1, m = r(L), g = a.value.months.map((Y) => +Y).includes(Me(L)), $ = e.disabledWeekDays.length ? e.disabledWeekDays.some((Y) => +Y === Us(L)) : !1, Q = u(L), re = we(L), me = re < +e.yearRange[0] || re > +e.yearRange[1];
5207
- return !(V || oe || m || g || me || $ || Q);
5208
- }, o = (L, V) => Ne(...Et(n.value.minDate, L, V)) || De(...Et(n.value.minDate, L, V)), v = (L, V) => We(...Et(n.value.maxDate, L, V)) || De(...Et(n.value.maxDate, L, V)), b = (L, V, oe) => {
5207
+ const V = n.value.maxDate ? We(L, n.value.maxDate) : !1, oe = n.value.minDate ? Ne(L, n.value.minDate) : !1, m = r(L), b = a.value.months.map((Y) => +Y).includes(Me(L)), $ = e.disabledWeekDays.length ? e.disabledWeekDays.some((Y) => +Y === Us(L)) : !1, Q = u(L), re = we(L), me = re < +e.yearRange[0] || re > +e.yearRange[1];
5208
+ return !(V || oe || m || b || me || $ || Q);
5209
+ }, o = (L, V) => Ne(...Et(n.value.minDate, L, V)) || De(...Et(n.value.minDate, L, V)), v = (L, V) => We(...Et(n.value.maxDate, L, V)) || De(...Et(n.value.maxDate, L, V)), w = (L, V, oe) => {
5209
5210
  let m = !1;
5210
5211
  return n.value.maxDate && oe && v(L, V) && (m = !0), n.value.minDate && !oe && o(L, V) && (m = !0), m;
5211
- }, w = (L, V, oe, m) => {
5212
- let g = !1;
5213
- return m ? n.value.minDate && n.value.maxDate ? g = b(L, V, oe) : (n.value.minDate && o(L, V) || n.value.maxDate && v(L, V)) && (g = !0) : g = !0, g;
5214
- }, u = (L) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !Sa(L, n.value.allowedDates) : !1, k = (L) => !s(L), f = (L) => t.value.noDisabledRange ? !fl({ start: L[0], end: L[1] }).some((V) => k(V)) : !0, D = (L) => {
5212
+ }, _ = (L, V, oe, m) => {
5213
+ let b = !1;
5214
+ return m ? n.value.minDate && n.value.maxDate ? b = w(L, V, oe) : (n.value.minDate && o(L, V) || n.value.maxDate && v(L, V)) && (b = !0) : b = !0, b;
5215
+ }, u = (L) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !Sa(L, n.value.allowedDates) : !1, g = (L) => !s(L), p = (L) => t.value.noDisabledRange ? !fl({ start: L[0], end: L[1] }).some((V) => g(V)) : !0, D = (L) => {
5215
5216
  if (L) {
5216
5217
  const V = we(L);
5217
5218
  return V >= +e.yearRange[0] && V <= e.yearRange[1];
5218
5219
  }
5219
5220
  return !0;
5220
- }, _ = (L, V) => !!(Array.isArray(L) && L[V] && (t.value.maxRange || t.value.minRange) && D(L[V])), W = (L, V, oe = 0) => {
5221
- if (_(V, oe) && D(L)) {
5222
- const m = vl(L, V[oe]), g = Il(V[oe], L), $ = g.length === 1 ? 0 : g.filter((re) => k(re)).length, Q = Math.abs(m) - (t.value.minMaxRawRange ? 0 : $);
5221
+ }, k = (L, V) => !!(Array.isArray(L) && L[V] && (t.value.maxRange || t.value.minRange) && D(L[V])), W = (L, V, oe = 0) => {
5222
+ if (k(V, oe) && D(L)) {
5223
+ const m = vl(L, V[oe]), b = Il(V[oe], L), $ = b.length === 1 ? 0 : b.filter((re) => g(re)).length, Q = Math.abs(m) - (t.value.minMaxRawRange ? 0 : $);
5223
5224
  if (t.value.minRange && t.value.maxRange)
5224
5225
  return Q >= +t.value.minRange && Q <= +t.value.maxRange;
5225
5226
  if (t.value.minRange)
@@ -5228,14 +5229,14 @@ const Au = ({
5228
5229
  return Q <= +t.value.maxRange;
5229
5230
  }
5230
5231
  return !0;
5231
- }, G = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, P = (L) => Array.isArray(L) ? [L[0] ? nn(L[0]) : null, L[1] ? nn(L[1]) : null] : nn(L), R = (L, V, oe) => L.find(
5232
+ }, G = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, P = (L) => Array.isArray(L) ? [L[0] ? nn(L[0]) : null, L[1] ? nn(L[1]) : null] : nn(L), O = (L, V, oe) => L.find(
5232
5233
  (m) => +m.hours === Ct(V) && m.minutes === "*" ? !0 : +m.minutes === Lt(V) && +m.hours === Ct(V)
5233
5234
  ) && oe, C = (L, V, oe) => {
5234
- const [m, g] = L, [$, Q] = V;
5235
- return !R(m, $, oe) && !R(g, Q, oe) && oe;
5235
+ const [m, b] = L, [$, Q] = V;
5236
+ return !O(m, $, oe) && !O(b, Q, oe) && oe;
5236
5237
  }, x = (L, V) => {
5237
5238
  const oe = Array.isArray(V) ? V : [V];
5238
- return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? C(e.disabledTimes, oe, L) : !oe.some((m) => R(e.disabledTimes, m, L)) : L;
5239
+ return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? C(e.disabledTimes, oe, L) : !oe.some((m) => O(e.disabledTimes, m, L)) : L;
5239
5240
  }, S = (L, V) => {
5240
5241
  const oe = Array.isArray(V) ? [Ut(V[0]), V[1] ? Ut(V[1]) : void 0] : Ut(V), m = !e.disabledTimes(oe);
5241
5242
  return L && m;
@@ -5263,8 +5264,8 @@ const Au = ({
5263
5264
  let V = !0;
5264
5265
  const oe = q(ht(L));
5265
5266
  if (n.value.minDate && n.value.maxDate) {
5266
- const m = q(ht(n.value.minDate)), g = q(ht(n.value.maxDate));
5267
- return We(oe, m) && Ne(oe, g) || De(oe, m) || De(oe, g);
5267
+ const m = q(ht(n.value.minDate)), b = q(ht(n.value.maxDate));
5268
+ return We(oe, m) && Ne(oe, b) || De(oe, m) || De(oe, b);
5268
5269
  }
5269
5270
  if (n.value.minDate) {
5270
5271
  const m = q(ht(n.value.minDate));
@@ -5277,10 +5278,10 @@ const Au = ({
5277
5278
  return V;
5278
5279
  }, se = H(() => (L) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : N(L)), pe = H(() => (L) => e.monthPicker ? Array.isArray(L) && (t.value.enabled || l.value.enabled) ? !L.filter((V) => !ee(V)).length : ee(L) : !0);
5279
5280
  return {
5280
- isDisabled: k,
5281
+ isDisabled: g,
5281
5282
  validateDate: s,
5282
- validateMonthYearInRange: w,
5283
- isDateRangeAllowed: f,
5283
+ validateMonthYearInRange: _,
5284
+ isDateRangeAllowed: p,
5284
5285
  checkMinMaxRange: W,
5285
5286
  isValidTime: N,
5286
5287
  isTimeValid: se,
@@ -5295,24 +5296,24 @@ const Au = ({
5295
5296
  [qt.calendar]: !1,
5296
5297
  [qt.header]: !1
5297
5298
  }), r = H(() => e.monthPicker || e.timePicker), s = (u) => {
5298
- var k;
5299
- if ((k = e.flow) != null && k.length) {
5299
+ var g;
5300
+ if ((g = e.flow) != null && g.length) {
5300
5301
  if (!u && r.value)
5301
- return w();
5302
- l[u] = !0, Object.keys(l).filter((f) => !l[f]).length || w();
5302
+ return _();
5303
+ l[u] = !0, Object.keys(l).filter((p) => !l[p]).length || _();
5303
5304
  }
5304
5305
  }, o = () => {
5305
5306
  var u;
5306
- (u = e.flow) != null && u.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), w());
5307
+ (u = e.flow) != null && u.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), _());
5307
5308
  }, v = () => {
5308
5309
  n.value = -1;
5309
- }, b = (u, k, ...f) => {
5310
- var D, _;
5311
- e.flow[n.value] === u && t.value && ((_ = (D = t.value)[k]) == null || _.call(D, ...f));
5312
- }, w = () => {
5313
- b(et.month, "toggleMonthPicker", !0), b(et.year, "toggleYearPicker", !0), b(et.calendar, "toggleTimePicker", !1, !0), b(et.time, "toggleTimePicker", !0, !0);
5310
+ }, w = (u, g, ...p) => {
5311
+ var D, k;
5312
+ e.flow[n.value] === u && t.value && ((k = (D = t.value)[g]) == null || k.call(D, ...p));
5313
+ }, _ = () => {
5314
+ w(et.month, "toggleMonthPicker", !0), w(et.year, "toggleYearPicker", !0), w(et.calendar, "toggleTimePicker", !1, !0), w(et.time, "toggleTimePicker", !0, !0);
5314
5315
  const u = e.flow[n.value];
5315
- (u === et.hours || u === et.minutes || u === et.seconds) && b(u, "toggleTimePicker", !0, !0, u);
5316
+ (u === et.hours || u === et.minutes || u === et.seconds) && w(u, "toggleTimePicker", !0, !0, u);
5316
5317
  };
5317
5318
  return { childMount: s, updateFlowStep: o, resetFlow: v, flowStep: n };
5318
5319
  }, Na = {
@@ -5493,11 +5494,11 @@ const Au = ({
5493
5494
  defaultedAriaLabels: s,
5494
5495
  defaultedInline: o,
5495
5496
  defaultedConfig: v,
5496
- defaultedRange: b,
5497
- defaultedMultiDates: w,
5497
+ defaultedRange: w,
5498
+ defaultedMultiDates: _,
5498
5499
  getDefaultPattern: u,
5499
- getDefaultStartTime: k
5500
- } = Ie(l), { checkMinMaxRange: f } = Ft(l), D = U(), _ = U(null), W = U(!1), G = U(!1), P = H(
5500
+ getDefaultStartTime: g
5501
+ } = Ie(l), { checkMinMaxRange: p } = Ft(l), D = U(), k = U(null), W = U(!1), G = U(!1), P = H(
5501
5502
  () => ({
5502
5503
  dp__pointer: !l.disabled && !l.readonly && !r.value.enabled,
5503
5504
  dp__disabled: l.disabled,
@@ -5510,77 +5511,77 @@ const Au = ({
5510
5511
  dp__input_reg: !r.value.enabled,
5511
5512
  [l.inputClassName]: !!l.inputClassName
5512
5513
  })
5513
- ), R = () => {
5514
+ ), O = () => {
5514
5515
  n("set-input-date", null), l.clearable && l.autoApply && (n("set-empty-date"), D.value = null);
5515
- }, C = (g) => {
5516
- const $ = k();
5516
+ }, C = (b) => {
5517
+ const $ = g();
5517
5518
  return ru(
5518
- g,
5519
+ b,
5519
5520
  r.value.format ?? u(),
5520
5521
  $ ?? Nl({}, l.enableSeconds),
5521
5522
  l.inputValue,
5522
5523
  G.value,
5523
5524
  l.formatLocale
5524
5525
  );
5525
- }, x = (g) => {
5526
- const { rangeSeparator: $ } = r.value, [Q, re] = g.split(`${$}`);
5526
+ }, x = (b) => {
5527
+ const { rangeSeparator: $ } = r.value, [Q, re] = b.split(`${$}`);
5527
5528
  if (Q) {
5528
5529
  const me = C(Q.trim()), Y = re ? C(re.trim()) : null;
5529
5530
  if (na(me, Y))
5530
5531
  return;
5531
5532
  const B = me && Y ? [me, Y] : [me];
5532
- f(Y, B, 0) && (D.value = me ? B : null);
5533
+ p(Y, B, 0) && (D.value = me ? B : null);
5533
5534
  }
5534
5535
  }, S = () => {
5535
5536
  G.value = !0;
5536
- }, h = (g) => {
5537
- if (b.value.enabled)
5538
- x(g);
5539
- else if (w.value.enabled) {
5540
- const $ = g.split(";");
5537
+ }, h = (b) => {
5538
+ if (w.value.enabled)
5539
+ x(b);
5540
+ else if (_.value.enabled) {
5541
+ const $ = b.split(";");
5541
5542
  D.value = $.map((Q) => C(Q.trim())).filter((Q) => Q);
5542
5543
  } else
5543
- D.value = C(g);
5544
- }, N = (g) => {
5544
+ D.value = C(b);
5545
+ }, N = (b) => {
5545
5546
  var $;
5546
- const Q = typeof g == "string" ? g : ($ = g.target) == null ? void 0 : $.value;
5547
- Q !== "" ? (r.value.openMenu && !l.isMenuOpen && n("open"), h(Q), n("set-input-date", D.value)) : R(), G.value = !1, n("update:input-value", Q);
5548
- }, ee = (g) => {
5549
- r.value.enabled ? (h(g.target.value), r.value.enterSubmit && fn(D.value) && l.inputValue !== "" ? (n("set-input-date", D.value, !0), D.value = null) : r.value.enterSubmit && l.inputValue === "" && (D.value = null, n("clear"))) : L(g);
5550
- }, se = (g) => {
5551
- r.value.enabled && r.value.tabSubmit && h(g.target.value), r.value.tabSubmit && fn(D.value) && l.inputValue !== "" ? (n("set-input-date", D.value, !0, !0), D.value = null) : r.value.tabSubmit && l.inputValue === "" && (D.value = null, n("clear", !0));
5547
+ const Q = typeof b == "string" ? b : ($ = b.target) == null ? void 0 : $.value;
5548
+ Q !== "" ? (r.value.openMenu && !l.isMenuOpen && n("open"), h(Q), n("set-input-date", D.value)) : O(), G.value = !1, n("update:input-value", Q);
5549
+ }, ee = (b) => {
5550
+ r.value.enabled ? (h(b.target.value), r.value.enterSubmit && fn(D.value) && l.inputValue !== "" ? (n("set-input-date", D.value, !0), D.value = null) : r.value.enterSubmit && l.inputValue === "" && (D.value = null, n("clear"))) : L(b);
5551
+ }, se = (b) => {
5552
+ r.value.enabled && r.value.tabSubmit && h(b.target.value), r.value.tabSubmit && fn(D.value) && l.inputValue !== "" ? (n("set-input-date", D.value, !0, !0), D.value = null) : r.value.tabSubmit && l.inputValue === "" && (D.value = null, n("clear", !0));
5552
5553
  }, pe = () => {
5553
5554
  W.value = !0, n("focus"), mt().then(() => {
5554
- var g;
5555
- r.value.enabled && r.value.selectOnFocus && ((g = _.value) == null || g.select());
5555
+ var b;
5556
+ r.value.enabled && r.value.selectOnFocus && ((b = k.value) == null || b.select());
5556
5557
  });
5557
- }, L = (g) => {
5558
- g.preventDefault(), Yt(g, v.value, !0), r.value.enabled && r.value.openMenu && !o.value.input && !l.isMenuOpen ? n("open") : r.value.enabled || n("toggle");
5558
+ }, L = (b) => {
5559
+ b.preventDefault(), Yt(b, v.value, !0), r.value.enabled && r.value.openMenu && !o.value.input && !l.isMenuOpen ? n("open") : r.value.enabled || n("toggle");
5559
5560
  }, V = () => {
5560
5561
  n("real-blur"), W.value = !1, (!l.isMenuOpen || o.value.enabled && o.value.input) && n("blur"), l.autoApply && r.value.enabled && D.value && !l.isMenuOpen && (n("set-input-date", D.value), n("select-date"), D.value = null);
5561
- }, oe = (g) => {
5562
- Yt(g, v.value, !0), n("clear");
5563
- }, m = (g) => {
5564
- if (g.key === "Tab" && se(g), g.key === "Enter" && ee(g), !r.value.enabled) {
5565
- if (g.code === "Tab")
5562
+ }, oe = (b) => {
5563
+ Yt(b, v.value, !0), n("clear");
5564
+ }, m = (b) => {
5565
+ if (b.key === "Tab" && se(b), b.key === "Enter" && ee(b), !r.value.enabled) {
5566
+ if (b.code === "Tab")
5566
5567
  return;
5567
- g.preventDefault();
5568
+ b.preventDefault();
5568
5569
  }
5569
5570
  };
5570
5571
  return a({
5571
5572
  focusInput: () => {
5572
- var g;
5573
- (g = _.value) == null || g.focus({ preventScroll: !0 });
5573
+ var b;
5574
+ (b = k.value) == null || b.focus({ preventScroll: !0 });
5574
5575
  },
5575
- setParsedDate: (g) => {
5576
- D.value = g;
5576
+ setParsedDate: (b) => {
5577
+ D.value = b;
5577
5578
  }
5578
- }), (g, $) => {
5579
+ }), (b, $) => {
5579
5580
  var Q;
5580
- return p(), A("div", { onClick: L }, [
5581
- g.$slots.trigger && !g.$slots["dp-input"] && !c(o).enabled ? ne(g.$slots, "trigger", { key: 0 }) : I("", !0),
5582
- !g.$slots.trigger && (!c(o).enabled || c(o).input) ? (p(), A("div", Yu, [
5583
- g.$slots["dp-input"] && !g.$slots.trigger && (!c(o).enabled || c(o).enabled && c(o).input) ? ne(g.$slots, "dp-input", {
5581
+ return f(), A("div", { onClick: L }, [
5582
+ b.$slots.trigger && !b.$slots["dp-input"] && !c(o).enabled ? ne(b.$slots, "trigger", { key: 0 }) : I("", !0),
5583
+ !b.$slots.trigger && (!c(o).enabled || c(o).input) ? (f(), A("div", Yu, [
5584
+ b.$slots["dp-input"] && !b.$slots.trigger && (!c(o).enabled || c(o).enabled && c(o).input) ? ne(b.$slots, "dp-input", {
5584
5585
  key: 0,
5585
5586
  value: e.inputValue,
5586
5587
  isMenuOpen: e.isMenuOpen,
@@ -5591,28 +5592,28 @@ const Au = ({
5591
5592
  onBlur: V,
5592
5593
  onKeypress: m,
5593
5594
  onPaste: S,
5594
- openMenu: () => g.$emit("open"),
5595
- closeMenu: () => g.$emit("close"),
5596
- toggleMenu: () => g.$emit("toggle")
5595
+ openMenu: () => b.$emit("open"),
5596
+ closeMenu: () => b.$emit("close"),
5597
+ toggleMenu: () => b.$emit("toggle")
5597
5598
  }) : I("", !0),
5598
- g.$slots["dp-input"] ? I("", !0) : (p(), A("input", {
5599
+ b.$slots["dp-input"] ? I("", !0) : (f(), A("input", {
5599
5600
  key: 1,
5600
- id: g.uid ? `dp-input-${g.uid}` : void 0,
5601
+ id: b.uid ? `dp-input-${b.uid}` : void 0,
5601
5602
  ref_key: "inputRef",
5602
- ref: _,
5603
+ ref: k,
5603
5604
  "data-test": "dp-input",
5604
- name: g.name,
5605
+ name: b.name,
5605
5606
  class: ye(P.value),
5606
5607
  inputmode: c(r).enabled ? "text" : "none",
5607
- placeholder: g.placeholder,
5608
- disabled: g.disabled,
5609
- readonly: g.readonly,
5610
- required: g.required,
5608
+ placeholder: b.placeholder,
5609
+ disabled: b.disabled,
5610
+ readonly: b.readonly,
5611
+ required: b.required,
5611
5612
  value: e.inputValue,
5612
- autocomplete: g.autocomplete,
5613
+ autocomplete: b.autocomplete,
5613
5614
  "aria-label": (Q = c(s)) == null ? void 0 : Q.input,
5614
- "aria-disabled": g.disabled || void 0,
5615
- "aria-invalid": g.state === !1 ? !0 : void 0,
5615
+ "aria-disabled": b.disabled || void 0,
5616
+ "aria-invalid": b.state === !1 ? !0 : void 0,
5616
5617
  onInput: N,
5617
5618
  onBlur: V,
5618
5619
  onFocus: pe,
@@ -5623,23 +5624,23 @@ const Au = ({
5623
5624
  z("div", {
5624
5625
  onClick: $[2] || ($[2] = (re) => n("toggle"))
5625
5626
  }, [
5626
- g.$slots["input-icon"] && !g.hideInputIcon ? (p(), A("span", {
5627
+ b.$slots["input-icon"] && !b.hideInputIcon ? (f(), A("span", {
5627
5628
  key: 0,
5628
5629
  class: "dp__input_icon",
5629
5630
  onClick: $[0] || ($[0] = (re) => n("toggle"))
5630
5631
  }, [
5631
- ne(g.$slots, "input-icon")
5632
+ ne(b.$slots, "input-icon")
5632
5633
  ])) : I("", !0),
5633
- !g.$slots["input-icon"] && !g.hideInputIcon && !g.$slots["dp-input"] ? (p(), be(c(sa), {
5634
+ !b.$slots["input-icon"] && !b.hideInputIcon && !b.$slots["dp-input"] ? (f(), be(c(sa), {
5634
5635
  key: 1,
5635
5636
  class: "dp__input_icon dp__input_icons",
5636
5637
  onClick: $[1] || ($[1] = (re) => n("toggle"))
5637
5638
  })) : I("", !0)
5638
5639
  ]),
5639
- g.$slots["clear-icon"] && e.inputValue && g.clearable && !g.disabled && !g.readonly ? (p(), A("span", Lu, [
5640
- ne(g.$slots, "clear-icon", { clear: oe })
5640
+ b.$slots["clear-icon"] && e.inputValue && b.clearable && !b.disabled && !b.readonly ? (f(), A("span", Lu, [
5641
+ ne(b.$slots, "clear-icon", { clear: oe })
5641
5642
  ])) : I("", !0),
5642
- g.clearable && !g.$slots["clear-icon"] && e.inputValue && !g.disabled && !g.readonly ? (p(), be(c(Al), {
5643
+ b.clearable && !b.$slots["clear-icon"] && e.inputValue && !b.disabled && !b.readonly ? (f(), be(c(Al), {
5643
5644
  key: 3,
5644
5645
  class: "dp__clear_icon dp__input_icons",
5645
5646
  "data-test": "clear-icon",
@@ -5667,23 +5668,23 @@ const Au = ({
5667
5668
  defaultedMultiCalendars: s,
5668
5669
  defaultedTextInput: o,
5669
5670
  defaultedInline: v,
5670
- defaultedRange: b,
5671
- defaultedMultiDates: w,
5671
+ defaultedRange: w,
5672
+ defaultedMultiDates: _,
5672
5673
  getDefaultPattern: u
5673
- } = Ie(n), { isTimeValid: k, isMonthValid: f } = Ft(n), { buildMatrix: D } = Nt(), _ = U(null), W = U(null), G = U(!1), P = U({}), R = U(null), C = U(null);
5674
+ } = Ie(n), { isTimeValid: g, isMonthValid: p } = Ft(n), { buildMatrix: D } = Nt(), k = U(null), W = U(null), G = U(!1), P = U({}), O = U(null), C = U(null);
5674
5675
  Ue(() => {
5675
- n.arrowNavigation && D([qe(_), qe(W)], "actionRow"), x(), window.addEventListener("resize", x);
5676
+ n.arrowNavigation && D([qe(k), qe(W)], "actionRow"), x(), window.addEventListener("resize", x);
5676
5677
  }), Ya(() => {
5677
5678
  window.removeEventListener("resize", x);
5678
5679
  });
5679
5680
  const x = () => {
5680
5681
  G.value = !1, setTimeout(() => {
5681
- var m, g;
5682
- const $ = (m = R.value) == null ? void 0 : m.getBoundingClientRect(), Q = (g = C.value) == null ? void 0 : g.getBoundingClientRect();
5682
+ var m, b;
5683
+ const $ = (m = O.value) == null ? void 0 : m.getBoundingClientRect(), Q = (b = C.value) == null ? void 0 : b.getBoundingClientRect();
5683
5684
  $ && Q && (P.value.maxWidth = `${Q.width - $.width - 20}px`), G.value = !0;
5684
5685
  }, 0);
5685
- }, S = H(() => b.value.enabled && !b.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), h = H(
5686
- () => !k.value(n.internalModelValue) || !f.value(n.internalModelValue) || !S.value
5686
+ }, S = H(() => w.value.enabled && !w.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), h = H(
5687
+ () => !g.value(n.internalModelValue) || !p.value(n.internalModelValue) || !S.value
5687
5688
  ), N = () => {
5688
5689
  const m = r.value;
5689
5690
  return n.timePicker || n.monthPicker, m(Ge(n.internalModelValue));
@@ -5697,12 +5698,12 @@ const Au = ({
5697
5698
  o.value.rangeSeparator,
5698
5699
  n.modelAuto,
5699
5700
  u()
5700
- ), pe = H(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? ee() : w.value.enabled ? n.internalModelValue.map((m) => `${se(m)}`) : n.modelAuto ? `${se(n.internalModelValue[0])}` : `${se(n.internalModelValue[0])} -` : se(n.internalModelValue) : N()), L = () => w.value.enabled ? "; " : " - ", V = H(
5701
+ ), pe = H(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? ee() : _.value.enabled ? n.internalModelValue.map((m) => `${se(m)}`) : n.modelAuto ? `${se(n.internalModelValue[0])}` : `${se(n.internalModelValue[0])} -` : se(n.internalModelValue) : N()), L = () => _.value.enabled ? "; " : " - ", V = H(
5701
5702
  () => Array.isArray(pe.value) ? pe.value.join(L()) : pe.value
5702
5703
  ), oe = () => {
5703
- k.value(n.internalModelValue) && f.value(n.internalModelValue) && S.value ? t("select-date") : t("invalid-select");
5704
+ g.value(n.internalModelValue) && p.value(n.internalModelValue) && S.value ? t("select-date") : t("invalid-select");
5704
5705
  };
5705
- return (m, g) => (p(), A("div", {
5706
+ return (m, b) => (f(), A("div", {
5706
5707
  ref_key: "actionRowRef",
5707
5708
  ref: C,
5708
5709
  class: "dp__action_row"
@@ -5712,8 +5713,8 @@ const Au = ({
5712
5713
  disabled: h.value,
5713
5714
  selectDate: () => m.$emit("select-date"),
5714
5715
  closePicker: () => m.$emit("close-picker")
5715
- }))) : (p(), A(_e, { key: 1 }, [
5716
- c(l).showPreview ? (p(), A("div", {
5716
+ }))) : (f(), A(_e, { key: 1 }, [
5717
+ c(l).showPreview ? (f(), A("div", {
5717
5718
  key: 0,
5718
5719
  class: "dp__selection_preview",
5719
5720
  title: V.value,
@@ -5723,13 +5724,13 @@ const Au = ({
5723
5724
  key: 0,
5724
5725
  value: m.internalModelValue
5725
5726
  }) : I("", !0),
5726
- !m.$slots["action-preview"] && G.value ? (p(), A(_e, { key: 1 }, [
5727
+ !m.$slots["action-preview"] && G.value ? (f(), A(_e, { key: 1 }, [
5727
5728
  ut(ke(V.value), 1)
5728
5729
  ], 64)) : I("", !0)
5729
5730
  ], 12, Nu)) : I("", !0),
5730
5731
  z("div", {
5731
5732
  ref_key: "actionBtnContainer",
5732
- ref: R,
5733
+ ref: O,
5733
5734
  class: "dp__action_buttons",
5734
5735
  "data-dp-element": "action-row"
5735
5736
  }, [
@@ -5737,24 +5738,24 @@ const Au = ({
5737
5738
  key: 0,
5738
5739
  value: m.internalModelValue
5739
5740
  }) : I("", !0),
5740
- m.$slots["action-buttons"] ? I("", !0) : (p(), A(_e, { key: 1 }, [
5741
- !c(v).enabled && c(l).showCancel ? (p(), A("button", {
5741
+ m.$slots["action-buttons"] ? I("", !0) : (f(), A(_e, { key: 1 }, [
5742
+ !c(v).enabled && c(l).showCancel ? (f(), A("button", {
5742
5743
  key: 0,
5743
5744
  ref_key: "cancelButtonRef",
5744
- ref: _,
5745
+ ref: k,
5745
5746
  type: "button",
5746
5747
  class: "dp__action_button dp__action_cancel",
5747
- onClick: g[0] || (g[0] = ($) => m.$emit("close-picker")),
5748
- onKeydown: g[1] || (g[1] = ($) => c(ot)($, () => m.$emit("close-picker")))
5748
+ onClick: b[0] || (b[0] = ($) => m.$emit("close-picker")),
5749
+ onKeydown: b[1] || (b[1] = ($) => c(ot)($, () => m.$emit("close-picker")))
5749
5750
  }, ke(m.cancelText), 545)) : I("", !0),
5750
- c(l).showNow ? (p(), A("button", {
5751
+ c(l).showNow ? (f(), A("button", {
5751
5752
  key: 1,
5752
5753
  type: "button",
5753
5754
  class: "dp__action_button dp__action_cancel",
5754
- onClick: g[2] || (g[2] = ($) => m.$emit("select-now")),
5755
- onKeydown: g[3] || (g[3] = ($) => c(ot)($, () => m.$emit("select-now")))
5755
+ onClick: b[2] || (b[2] = ($) => m.$emit("select-now")),
5756
+ onKeydown: b[3] || (b[3] = ($) => c(ot)($, () => m.$emit("select-now")))
5756
5757
  }, ke(m.nowButtonLabel), 33)) : I("", !0),
5757
- c(l).showSelect ? (p(), A("button", {
5758
+ c(l).showSelect ? (f(), A("button", {
5758
5759
  key: 2,
5759
5760
  ref_key: "selectButtonRef",
5760
5761
  ref: W,
@@ -5762,7 +5763,7 @@ const Au = ({
5762
5763
  class: "dp__action_button dp__action_select",
5763
5764
  disabled: h.value,
5764
5765
  "data-test": "select-button",
5765
- onKeydown: g[4] || (g[4] = ($) => c(ot)($, () => oe())),
5766
+ onKeydown: b[4] || (b[4] = ($) => c(ot)($, () => oe())),
5766
5767
  onClick: oe
5767
5768
  }, ke(m.selectText), 41, Fu)) : I("", !0)
5768
5769
  ], 64))
@@ -5792,11 +5793,11 @@ const Au = ({
5792
5793
  },
5793
5794
  emits: ["selected", "toggle", "reset-flow", "hover-value"],
5794
5795
  setup(e, { expose: a, emit: t }) {
5795
- const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Nt(), s = t, o = e, { defaultedAriaLabels: v, defaultedTextInput: b, defaultedConfig: w } = Ie(
5796
+ const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Nt(), s = t, o = e, { defaultedAriaLabels: v, defaultedTextInput: w, defaultedConfig: _ } = Ie(
5796
5797
  o
5797
- ), { hideNavigationButtons: u } = Ia(), k = U(!1), f = U(null), D = U(null), _ = U([]), W = U(), G = U(null), P = U(0), R = U(null);
5798
+ ), { hideNavigationButtons: u } = Ia(), g = U(!1), p = U(null), D = U(null), k = U([]), W = U(), G = U(null), P = U(0), O = U(null);
5798
5799
  ar(() => {
5799
- f.value = null;
5800
+ p.value = null;
5800
5801
  }), Ue(() => {
5801
5802
  mt().then(() => pe()), o.noOverlayFocus || x(), C(!0);
5802
5803
  }), Ya(() => C(!1));
@@ -5806,7 +5807,7 @@ const Au = ({
5806
5807
  }, x = () => {
5807
5808
  var B;
5808
5809
  const i = qe(D);
5809
- i && (b.value.enabled || (f.value ? (B = f.value) == null || B.focus({ preventScroll: !0 }) : i.focus({ preventScroll: !0 })), k.value = i.clientHeight < i.scrollHeight);
5810
+ i && (w.value.enabled || (p.value ? (B = p.value) == null || B.focus({ preventScroll: !0 }) : i.focus({ preventScroll: !0 })), g.value = i.clientHeight < i.scrollHeight);
5810
5811
  }, S = H(
5811
5812
  () => ({
5812
5813
  dp__overlay: !0,
@@ -5822,7 +5823,7 @@ const Au = ({
5822
5823
  dp__btn: !0,
5823
5824
  dp__button: !0,
5824
5825
  dp__overlay_action: !0,
5825
- dp__over_action_scroll: k.value,
5826
+ dp__over_action_scroll: g.value,
5826
5827
  dp__button_bottom: o.isLast
5827
5828
  })
5828
5829
  ), se = H(() => {
@@ -5840,8 +5841,8 @@ const Au = ({
5840
5841
  );
5841
5842
  const pe = (B = !0) => {
5842
5843
  mt().then(() => {
5843
- const i = qe(f), E = qe(D), le = qe(G), te = qe(R), y = le ? le.getBoundingClientRect().height : 0;
5844
- E && (E.getBoundingClientRect().height ? P.value = E.getBoundingClientRect().height - y : P.value = w.value.modeHeight - y), i && te && B && (te.scrollTop = i.offsetTop - te.offsetTop - (P.value / 2 - i.getBoundingClientRect().height) - y);
5844
+ const i = qe(p), E = qe(D), le = qe(G), te = qe(O), y = le ? le.getBoundingClientRect().height : 0;
5845
+ E && (E.getBoundingClientRect().height ? P.value = E.getBoundingClientRect().height - y : P.value = _.value.modeHeight - y), i && te && B && (te.scrollTop = i.offsetTop - te.offsetTop - (P.value / 2 - i.getBoundingClientRect().height) - y);
5845
5846
  });
5846
5847
  }, L = (B) => {
5847
5848
  B.disabled || s("selected", B.value);
@@ -5850,13 +5851,13 @@ const Au = ({
5850
5851
  }, oe = () => {
5851
5852
  o.escClose && V();
5852
5853
  }, m = (B, i, E, le) => {
5853
- B && ((i.active || i.value === o.focusValue) && (f.value = B), o.arrowNavigation && (Array.isArray(_.value[E]) ? _.value[E][le] = B : _.value[E] = [B], g()));
5854
- }, g = () => {
5854
+ B && ((i.active || i.value === o.focusValue) && (p.value = B), o.arrowNavigation && (Array.isArray(k.value[E]) ? k.value[E][le] = B : k.value[E] = [B], b()));
5855
+ }, b = () => {
5855
5856
  var B, i;
5856
- const E = (B = o.headerRefs) != null && B.length ? [o.headerRefs].concat(_.value) : _.value.concat([o.skipButtonRef ? [] : [G.value]]);
5857
+ const E = (B = o.headerRefs) != null && B.length ? [o.headerRefs].concat(k.value) : k.value.concat([o.skipButtonRef ? [] : [G.value]]);
5857
5858
  l(Ge(E), (i = o.headerRefs) != null && i.length ? "monthPicker" : "selectionGrid");
5858
5859
  }, $ = (B) => {
5859
- o.arrowNavigation || Yt(B, w.value, !0);
5860
+ o.arrowNavigation || Yt(B, _.value, !0);
5860
5861
  }, Q = (B) => {
5861
5862
  W.value = B, s("hover-value", B);
5862
5863
  }, re = () => {
@@ -5890,7 +5891,7 @@ const Au = ({
5890
5891
  };
5891
5892
  return a({ focusGrid: x }), (B, i) => {
5892
5893
  var E;
5893
- return p(), A("div", {
5894
+ return f(), A("div", {
5894
5895
  ref_key: "gridWrapRef",
5895
5896
  ref: D,
5896
5897
  class: ye(S.value),
@@ -5901,7 +5902,7 @@ const Au = ({
5901
5902
  }, [
5902
5903
  z("div", {
5903
5904
  ref_key: "containerRef",
5904
- ref: R,
5905
+ ref: O,
5905
5906
  class: ye(se.value),
5906
5907
  role: "grid",
5907
5908
  style: tt({ "--dp-overlay-height": `${P.value}px` })
@@ -5909,12 +5910,12 @@ const Au = ({
5909
5910
  z("div", Hu, [
5910
5911
  ne(B.$slots, "header")
5911
5912
  ]),
5912
- B.$slots.overlay ? ne(B.$slots, "overlay", { key: 0 }) : (p(!0), A(_e, { key: 1 }, Se(B.items, (le, te) => (p(), A("div", {
5913
+ B.$slots.overlay ? ne(B.$slots, "overlay", { key: 0 }) : (f(!0), A(_e, { key: 1 }, Se(B.items, (le, te) => (f(), A("div", {
5913
5914
  key: te,
5914
5915
  class: ye(["dp__overlay_row", { dp__flex_row: B.items.length >= 3 }]),
5915
5916
  role: "row"
5916
5917
  }, [
5917
- (p(!0), A(_e, null, Se(le, (y, ue) => (p(), A("div", {
5918
+ (f(!0), A(_e, null, Se(le, (y, ue) => (f(), A("div", {
5918
5919
  key: y.value,
5919
5920
  ref_for: !0,
5920
5921
  ref: (ge) => m(ge, y, te, ue),
@@ -5935,14 +5936,14 @@ const Au = ({
5935
5936
  key: 0,
5936
5937
  item: y
5937
5938
  }) : I("", !0),
5938
- B.$slots.item ? I("", !0) : (p(), A(_e, { key: 1 }, [
5939
+ B.$slots.item ? I("", !0) : (f(), A(_e, { key: 1 }, [
5939
5940
  ut(ke(y.text), 1)
5940
5941
  ], 64))
5941
5942
  ], 2)
5942
5943
  ], 42, Wu))), 128))
5943
5944
  ], 2))), 128))
5944
5945
  ], 6),
5945
- B.$slots["button-icon"] ? Xe((p(), A("button", {
5946
+ B.$slots["button-icon"] ? Xe((f(), A("button", {
5946
5947
  key: 0,
5947
5948
  ref_key: "toggleButton",
5948
5949
  ref: G,
@@ -5973,7 +5974,7 @@ const Au = ({
5973
5974
  ), n = H(() => ({
5974
5975
  dp__instance_calendar: a.multiCalendars > 0
5975
5976
  }));
5976
- return (l, r) => (p(), A("div", {
5977
+ return (l, r) => (f(), A("div", {
5977
5978
  class: ye({
5978
5979
  dp__menu_inner: !l.stretch,
5979
5980
  "dp--menu--inner-stretched": l.stretch,
@@ -5981,7 +5982,7 @@ const Au = ({
5981
5982
  "dp--flex-display-collapsed": l.collapse
5982
5983
  })
5983
5984
  }, [
5984
- (p(!0), A(_e, null, Se(t.value, (s, o) => (p(), A("div", {
5985
+ (f(!0), A(_e, null, Se(t.value, (s, o) => (f(), A("div", {
5985
5986
  key: s,
5986
5987
  class: ye(n.value)
5987
5988
  }, [
@@ -6004,7 +6005,7 @@ const Au = ({
6004
6005
  emits: ["activate", "set-ref"],
6005
6006
  setup(e, { emit: a }) {
6006
6007
  const t = a, n = U(null);
6007
- return Ue(() => t("set-ref", n)), (l, r) => (p(), A("button", {
6008
+ return Ue(() => t("set-ref", n)), (l, r) => (f(), A("button", {
6008
6009
  ref_key: "elRef",
6009
6010
  ref: n,
6010
6011
  type: "button",
@@ -6034,17 +6035,17 @@ const Au = ({
6034
6035
  },
6035
6036
  emits: ["toggle-year-picker", "year-select", "handle-year"],
6036
6037
  setup(e, { emit: a }) {
6037
- const t = a, n = e, { showRightIcon: l, showLeftIcon: r } = Ia(), { defaultedConfig: s, defaultedMultiCalendars: o, defaultedAriaLabels: v, defaultedTransitions: b } = Ie(n), { showTransition: w, transitionName: u } = Ma(b), k = (_ = !1, W) => {
6038
- t("toggle-year-picker", { flow: _, show: W });
6039
- }, f = (_) => {
6040
- t("year-select", _);
6041
- }, D = (_ = !1) => {
6042
- t("handle-year", _);
6038
+ const t = a, n = e, { showRightIcon: l, showLeftIcon: r } = Ia(), { defaultedConfig: s, defaultedMultiCalendars: o, defaultedAriaLabels: v, defaultedTransitions: w } = Ie(n), { showTransition: _, transitionName: u } = Ma(w), g = (k = !1, W) => {
6039
+ t("toggle-year-picker", { flow: k, show: W });
6040
+ }, p = (k) => {
6041
+ t("year-select", k);
6042
+ }, D = (k = !1) => {
6043
+ t("handle-year", k);
6043
6044
  };
6044
- return (_, W) => {
6045
- var G, P, R;
6046
- return p(), A("div", qu, [
6047
- c(r)(c(o), e.instance) ? (p(), be(ya, {
6045
+ return (k, W) => {
6046
+ var G, P, O;
6047
+ return f(), A("div", qu, [
6048
+ c(r)(c(o), e.instance) ? (f(), be(ya, {
6048
6049
  key: 0,
6049
6050
  ref: "mpPrevIconRef",
6050
6051
  "aria-label": (G = c(v)) == null ? void 0 : G.prevYear,
@@ -6052,8 +6053,8 @@ const Au = ({
6052
6053
  onActivate: W[0] || (W[0] = (C) => D(!1))
6053
6054
  }, {
6054
6055
  default: fe(() => [
6055
- _.$slots["arrow-left"] ? ne(_.$slots, "arrow-left", { key: 0 }) : I("", !0),
6056
- _.$slots["arrow-left"] ? I("", !0) : (p(), be(c(Tn), { key: 1 }))
6056
+ k.$slots["arrow-left"] ? ne(k.$slots, "arrow-left", { key: 0 }) : I("", !0),
6057
+ k.$slots["arrow-left"] ? I("", !0) : (f(), be(c(Tn), { key: 1 }))
6057
6058
  ]),
6058
6059
  _: 3
6059
6060
  }, 8, ["aria-label", "disabled"])) : I("", !0),
@@ -6063,58 +6064,58 @@ const Au = ({
6063
6064
  type: "button",
6064
6065
  "aria-label": (P = c(v)) == null ? void 0 : P.openYearsOverlay,
6065
6066
  "data-test": `year-mode-btn-${e.instance}`,
6066
- onClick: W[1] || (W[1] = () => k(!1)),
6067
- onKeydown: W[2] || (W[2] = Jt(() => k(!1), ["enter"]))
6067
+ onClick: W[1] || (W[1] = () => g(!1)),
6068
+ onKeydown: W[2] || (W[2] = Jt(() => g(!1), ["enter"]))
6068
6069
  }, [
6069
- _.$slots.year ? ne(_.$slots, "year", {
6070
+ k.$slots.year ? ne(k.$slots, "year", {
6070
6071
  key: 0,
6071
6072
  year: e.year
6072
6073
  }) : I("", !0),
6073
- _.$slots.year ? I("", !0) : (p(), A(_e, { key: 1 }, [
6074
+ k.$slots.year ? I("", !0) : (f(), A(_e, { key: 1 }, [
6074
6075
  ut(ke(e.year), 1)
6075
6076
  ], 64))
6076
6077
  ], 40, Uu),
6077
- c(l)(c(o), e.instance) ? (p(), be(ya, {
6078
+ c(l)(c(o), e.instance) ? (f(), be(ya, {
6078
6079
  key: 1,
6079
6080
  ref: "mpNextIconRef",
6080
- "aria-label": (R = c(v)) == null ? void 0 : R.nextYear,
6081
+ "aria-label": (O = c(v)) == null ? void 0 : O.nextYear,
6081
6082
  disabled: e.isDisabled(!0),
6082
6083
  onActivate: W[3] || (W[3] = (C) => D(!0))
6083
6084
  }, {
6084
6085
  default: fe(() => [
6085
- _.$slots["arrow-right"] ? ne(_.$slots, "arrow-right", { key: 0 }) : I("", !0),
6086
- _.$slots["arrow-right"] ? I("", !0) : (p(), be(c(Pn), { key: 1 }))
6086
+ k.$slots["arrow-right"] ? ne(k.$slots, "arrow-right", { key: 0 }) : I("", !0),
6087
+ k.$slots["arrow-right"] ? I("", !0) : (f(), be(c(Pn), { key: 1 }))
6087
6088
  ]),
6088
6089
  _: 3
6089
6090
  }, 8, ["aria-label", "disabled"])) : I("", !0),
6090
6091
  Ee(lt, {
6091
6092
  name: c(u)(e.showYearPicker),
6092
- css: c(w)
6093
+ css: c(_)
6093
6094
  }, {
6094
6095
  default: fe(() => [
6095
- e.showYearPicker ? (p(), be(Ta, {
6096
+ e.showYearPicker ? (f(), be(Ta, {
6096
6097
  key: 0,
6097
6098
  items: e.items,
6098
- "text-input": _.textInput,
6099
- "esc-close": _.escClose,
6100
- config: _.config,
6101
- "is-last": _.autoApply && !c(s).keepActionRow,
6102
- "hide-navigation": _.hideNavigation,
6103
- "aria-labels": _.ariaLabels,
6099
+ "text-input": k.textInput,
6100
+ "esc-close": k.escClose,
6101
+ config: k.config,
6102
+ "is-last": k.autoApply && !c(s).keepActionRow,
6103
+ "hide-navigation": k.hideNavigation,
6104
+ "aria-labels": k.ariaLabels,
6104
6105
  type: "year",
6105
- onToggle: k,
6106
- onSelected: W[4] || (W[4] = (C) => f(C))
6106
+ onToggle: g,
6107
+ onSelected: W[4] || (W[4] = (C) => p(C))
6107
6108
  }, at({
6108
6109
  "button-icon": fe(() => [
6109
- _.$slots["calendar-icon"] ? ne(_.$slots, "calendar-icon", { key: 0 }) : I("", !0),
6110
- _.$slots["calendar-icon"] ? I("", !0) : (p(), be(c(sa), { key: 1 }))
6110
+ k.$slots["calendar-icon"] ? ne(k.$slots, "calendar-icon", { key: 0 }) : I("", !0),
6111
+ k.$slots["calendar-icon"] ? I("", !0) : (f(), be(c(sa), { key: 1 }))
6111
6112
  ]),
6112
6113
  _: 2
6113
6114
  }, [
6114
- _.$slots["year-overlay-value"] ? {
6115
+ k.$slots["year-overlay-value"] ? {
6115
6116
  name: "item",
6116
6117
  fn: fe(({ item: C }) => [
6117
- ne(_.$slots, "year-overlay-value", {
6118
+ ne(k.$slots, "year-overlay-value", {
6118
6119
  text: C.text,
6119
6120
  value: C.value
6120
6121
  })
@@ -6154,9 +6155,9 @@ const Au = ({
6154
6155
  filters: s,
6155
6156
  year: o,
6156
6157
  month: v,
6157
- emit: b
6158
+ emit: w
6158
6159
  }) => {
6159
- const w = H(() => An(r.yearRange, r.locale, r.reverseYears)), u = U([!1]), k = H(() => (S, h) => {
6160
+ const _ = H(() => An(r.yearRange, r.locale, r.reverseYears)), u = U([!1]), g = H(() => (S, h) => {
6160
6161
  const N = Oe(ht(/* @__PURE__ */ new Date()), {
6161
6162
  month: v.value(S),
6162
6163
  year: o.value(S)
@@ -6168,7 +6169,7 @@ const Au = ({
6168
6169
  r.preventMinMaxNavigation,
6169
6170
  h
6170
6171
  );
6171
- }), f = () => {
6172
+ }), p = () => {
6172
6173
  for (let S = 0; S < e.value.count; S++)
6173
6174
  if (S === 0)
6174
6175
  n.value[S] = n.value[0];
@@ -6178,21 +6179,21 @@ const Au = ({
6178
6179
  }
6179
6180
  }, D = (S) => {
6180
6181
  if (!S)
6181
- return f();
6182
+ return p();
6182
6183
  const h = Oe(q(), n.value[S]);
6183
- return n.value[0].year = we(Cl(h, e.value.count - 1)), f();
6184
- }, _ = (S) => r.focusStartDate ? S[0] : S[1] ? S[1] : S[0], W = () => {
6184
+ return n.value[0].year = we(Cl(h, e.value.count - 1)), p();
6185
+ }, k = (S) => r.focusStartDate ? S[0] : S[1] ? S[1] : S[0], W = () => {
6185
6186
  if (l.value) {
6186
- const S = Array.isArray(l.value) ? _(l.value) : l.value;
6187
+ const S = Array.isArray(l.value) ? k(l.value) : l.value;
6187
6188
  n.value[0] = { month: Me(S), year: we(S) };
6188
6189
  }
6189
6190
  };
6190
6191
  Ue(() => {
6191
- W(), e.value.count && f();
6192
+ W(), e.value.count && p();
6192
6193
  });
6193
6194
  const G = (S, h) => {
6194
- n.value[h].year = S, b("update-month-year", { instance: h, year: S, month: n.value[h].month }), e.value.count && !e.value.solo && D(h);
6195
- }, P = H(() => (S) => ra(w.value, (h) => {
6195
+ n.value[h].year = S, w("update-month-year", { instance: h, year: S, month: n.value[h].month }), e.value.count && !e.value.solo && D(h);
6196
+ }, P = H(() => (S) => ra(_.value, (h) => {
6196
6197
  var N;
6197
6198
  const ee = o.value(S) === h.value, se = wa(
6198
6199
  h.value,
@@ -6200,23 +6201,23 @@ const Au = ({
6200
6201
  oa(t.value.maxDate)
6201
6202
  ) || ((N = s.value.years) == null ? void 0 : N.includes(o.value(S))), pe = Sn(a.value, h.value);
6202
6203
  return { active: ee, disabled: se, highlighted: pe };
6203
- })), R = (S, h) => {
6204
+ })), O = (S, h) => {
6204
6205
  G(S, h), x(h);
6205
6206
  }, C = (S, h = !1) => {
6206
- if (!k.value(S, h)) {
6207
+ if (!g.value(S, h)) {
6207
6208
  const N = h ? o.value(S) + 1 : o.value(S) - 1;
6208
6209
  G(N, S);
6209
6210
  }
6210
6211
  }, x = (S, h = !1, N) => {
6211
- h || b("reset-flow"), N !== void 0 ? u.value[S] = N : u.value[S] = !u.value[S], u.value[S] ? b("overlay-toggle", { open: !0, overlay: et.year }) : (b("overlay-closed"), b("overlay-toggle", { open: !1, overlay: et.year }));
6212
+ h || w("reset-flow"), N !== void 0 ? u.value[S] = N : u.value[S] = !u.value[S], u.value[S] ? w("overlay-toggle", { open: !0, overlay: et.year }) : (w("overlay-closed"), w("overlay-toggle", { open: !1, overlay: et.year }));
6212
6213
  };
6213
6214
  return {
6214
- isDisabled: k,
6215
+ isDisabled: g,
6215
6216
  groupedYears: P,
6216
6217
  showYearPicker: u,
6217
6218
  selectYear: G,
6218
6219
  toggleYearPicker: x,
6219
- handleYearSelect: R,
6220
+ handleYearSelect: O,
6220
6221
  handleYear: C
6221
6222
  };
6222
6223
  }, Gu = (e, a) => {
@@ -6228,11 +6229,11 @@ const Au = ({
6228
6229
  defaultedRange: s,
6229
6230
  defaultedHighlight: o,
6230
6231
  propDates: v,
6231
- defaultedTz: b,
6232
- defaultedFilters: w,
6232
+ defaultedTz: w,
6233
+ defaultedFilters: _,
6233
6234
  defaultedMultiDates: u
6234
- } = Ie(e), { modelValue: k, year: f, month: D, calendars: _ } = Da(e, a), W = H(() => Ol(e.formatLocale, e.locale, e.monthNameFormat)), G = U(null), { checkMinMaxRange: P } = Ft(e), {
6235
- selectYear: R,
6235
+ } = Ie(e), { modelValue: g, year: p, month: D, calendars: k } = Da(e, a), W = H(() => Ol(e.formatLocale, e.locale, e.monthNameFormat)), G = U(null), { checkMinMaxRange: P } = Ft(e), {
6236
+ selectYear: O,
6236
6237
  groupedYears: C,
6237
6238
  showYearPicker: x,
6238
6239
  toggleYearPicker: S,
@@ -6240,33 +6241,33 @@ const Au = ({
6240
6241
  handleYear: N,
6241
6242
  isDisabled: ee
6242
6243
  } = Ul({
6243
- modelValue: k,
6244
+ modelValue: g,
6244
6245
  multiCalendars: t,
6245
6246
  highlight: o,
6246
- calendars: _,
6247
- year: f,
6247
+ calendars: k,
6248
+ year: p,
6248
6249
  propDates: v,
6249
6250
  month: D,
6250
- filters: w,
6251
+ filters: _,
6251
6252
  props: e,
6252
6253
  emit: a
6253
6254
  });
6254
6255
  Ue(() => {
6255
- e.startDate && (k.value && e.focusStartDate || !k.value) && R(we(q(e.startDate)), 0);
6256
+ e.startDate && (g.value && e.focusStartDate || !g.value) && O(we(q(e.startDate)), 0);
6256
6257
  });
6257
- const se = (i) => i ? { month: Me(i), year: we(i) } : { month: null, year: null }, pe = () => k.value ? Array.isArray(k.value) ? k.value.map((i) => se(i)) : se(k.value) : se(), L = (i, E) => {
6258
- const le = _.value[i], te = pe();
6258
+ const se = (i) => i ? { month: Me(i), year: we(i) } : { month: null, year: null }, pe = () => g.value ? Array.isArray(g.value) ? g.value.map((i) => se(i)) : se(g.value) : se(), L = (i, E) => {
6259
+ const le = k.value[i], te = pe();
6259
6260
  return Array.isArray(te) ? te.some((y) => y.year === (le == null ? void 0 : le.year) && y.month === E) : (le == null ? void 0 : le.year) === te.year && E === te.month;
6260
6261
  }, V = (i, E, le) => {
6261
6262
  var te, y;
6262
6263
  const ue = pe();
6263
- 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;
6264
+ return Array.isArray(ue) ? p.value(E) === ((te = ue[le]) == null ? void 0 : te.year) && i === ((y = ue[le]) == null ? void 0 : y.month) : !1;
6264
6265
  }, oe = (i, E) => {
6265
6266
  if (s.value.enabled) {
6266
6267
  const le = pe();
6267
- if (Array.isArray(k.value) && Array.isArray(le)) {
6268
- const te = V(i, E, 0) || V(i, E, 1), y = $t(ht(q()), i, f.value(E));
6269
- return La(k.value, G.value, y) && !te;
6268
+ if (Array.isArray(g.value) && Array.isArray(le)) {
6269
+ const te = V(i, E, 0) || V(i, E, 1), y = $t(ht(q()), i, p.value(E));
6270
+ return La(g.value, G.value, y) && !te;
6270
6271
  }
6271
6272
  return !1;
6272
6273
  }
@@ -6275,22 +6276,22 @@ const Au = ({
6275
6276
  var le;
6276
6277
  const te = L(i, E.value), y = wa(
6277
6278
  E.value,
6278
- Bl(f.value(i), v.value.minDate),
6279
- Ll(f.value(i), v.value.maxDate)
6280
- ) || cu(v.value.disabledDates, f.value(i)).includes(E.value) || ((le = w.value.months) == null ? void 0 : le.includes(E.value)), ue = oe(E.value, i), ge = Hl(o.value, E.value, f.value(i));
6279
+ Bl(p.value(i), v.value.minDate),
6280
+ Ll(p.value(i), v.value.maxDate)
6281
+ ) || cu(v.value.disabledDates, p.value(i)).includes(E.value) || ((le = _.value.months) == null ? void 0 : le.includes(E.value)), ue = oe(E.value, i), ge = Hl(o.value, E.value, p.value(i));
6281
6282
  return { active: te, disabled: y, isBetween: ue, highlighted: ge };
6282
- })), g = (i, E) => $t(ht(q()), i, f.value(E)), $ = (i, E) => {
6283
- const le = k.value ? k.value : ht(/* @__PURE__ */ new Date());
6284
- k.value = $t(le, i, f.value(E)), a("auto-apply"), a("update-flow-step");
6283
+ })), b = (i, E) => $t(ht(q()), i, p.value(E)), $ = (i, E) => {
6284
+ const le = g.value ? g.value : ht(/* @__PURE__ */ new Date());
6285
+ g.value = $t(le, i, p.value(E)), a("auto-apply"), a("update-flow-step");
6285
6286
  }, Q = (i, E) => {
6286
- const le = g(i, E);
6287
- s.value.fixedEnd || s.value.fixedStart ? k.value = ql(le, k, a, s) : k.value ? P(le, k.value) && (k.value = Yn(k, g(i, E), a)) : k.value = [g(i, E)], mt().then(() => {
6288
- Va(k.value, a, e.autoApply, e.modelAuto);
6287
+ const le = b(i, E);
6288
+ s.value.fixedEnd || s.value.fixedStart ? g.value = ql(le, g, a, s) : g.value ? P(le, g.value) && (g.value = Yn(g, b(i, E), a)) : g.value = [b(i, E)], mt().then(() => {
6289
+ Va(g.value, a, e.autoApply, e.modelAuto);
6289
6290
  });
6290
6291
  }, re = (i, E) => {
6291
- En(g(i, E), k, u.value.limit), a("auto-apply", !0);
6292
- }, me = (i, E) => (_.value[E].month = i, B(E, _.value[E].year, i), u.value.enabled ? re(i, E) : s.value.enabled ? Q(i, E) : $(i, E)), Y = (i, E) => {
6293
- R(i, E), B(E, i, null);
6292
+ En(b(i, E), g, u.value.limit), a("auto-apply", !0);
6293
+ }, me = (i, E) => (k.value[E].month = i, B(E, k.value[E].year, i), u.value.enabled ? re(i, E) : s.value.enabled ? Q(i, E) : $(i, E)), Y = (i, E) => {
6294
+ O(i, E), B(E, i, null);
6294
6295
  }, B = (i, E, le) => {
6295
6296
  let te = le;
6296
6297
  if (!te && te !== 0) {
@@ -6302,24 +6303,24 @@ const Au = ({
6302
6303
  return {
6303
6304
  groupedMonths: m,
6304
6305
  groupedYears: C,
6305
- year: f,
6306
+ year: p,
6306
6307
  isDisabled: ee,
6307
6308
  defaultedMultiCalendars: t,
6308
6309
  defaultedAriaLabels: n,
6309
6310
  defaultedTransitions: l,
6310
6311
  defaultedConfig: r,
6311
6312
  showYearPicker: x,
6312
- modelValue: k,
6313
+ modelValue: g,
6313
6314
  presetDate: (i, E) => {
6314
6315
  jl({
6315
6316
  value: i,
6316
- modelValue: k,
6317
+ modelValue: g,
6317
6318
  range: s.value.enabled,
6318
- timezone: E ? void 0 : b.value.timezone
6319
+ timezone: E ? void 0 : w.value.timezone
6319
6320
  }), a("auto-apply");
6320
6321
  },
6321
6322
  setHoverDate: (i, E) => {
6322
- G.value = g(i, E);
6323
+ G.value = b(i, E);
6323
6324
  },
6324
6325
  selectMonth: me,
6325
6326
  selectYear: Y,
@@ -6357,29 +6358,29 @@ const Au = ({
6357
6358
  const {
6358
6359
  groupedMonths: o,
6359
6360
  groupedYears: v,
6360
- year: b,
6361
- isDisabled: w,
6361
+ year: w,
6362
+ isDisabled: _,
6362
6363
  defaultedMultiCalendars: u,
6363
- defaultedConfig: k,
6364
- showYearPicker: f,
6364
+ defaultedConfig: g,
6365
+ showYearPicker: p,
6365
6366
  modelValue: D,
6366
- presetDate: _,
6367
+ presetDate: k,
6367
6368
  setHoverDate: W,
6368
6369
  selectMonth: G,
6369
6370
  selectYear: P,
6370
- toggleYearPicker: R,
6371
+ toggleYearPicker: O,
6371
6372
  handleYearSelect: C,
6372
6373
  handleYear: x,
6373
6374
  getModelMonthYear: S
6374
6375
  } = Gu(s, n);
6375
6376
  return a({ getSidebarProps: () => ({
6376
6377
  modelValue: D,
6377
- year: b,
6378
+ year: w,
6378
6379
  getModelMonthYear: S,
6379
6380
  selectMonth: G,
6380
6381
  selectYear: P,
6381
6382
  handleYear: x
6382
- }), presetDate: _, toggleYearPicker: (h) => R(0, h) }), (h, N) => (p(), be(Fa, {
6383
+ }), presetDate: k, toggleYearPicker: (h) => O(0, h) }), (h, N) => (f(), be(Fa, {
6383
6384
  "multi-calendars": c(u).count,
6384
6385
  collapse: h.collapse,
6385
6386
  stretch: ""
@@ -6390,19 +6391,19 @@ const Au = ({
6390
6391
  value: h.internalModelValue
6391
6392
  }) : I("", !0),
6392
6393
  h.$slots["month-year"] ? ne(h.$slots, "month-year", Qe(Fe({ key: 1 }, {
6393
- year: c(b),
6394
+ year: c(w),
6394
6395
  months: c(o)(ee),
6395
6396
  years: c(v)(ee),
6396
6397
  selectMonth: c(G),
6397
6398
  selectYear: c(P),
6398
6399
  instance: ee
6399
- }))) : (p(), be(Ta, {
6400
+ }))) : (f(), be(Ta, {
6400
6401
  key: 2,
6401
6402
  items: c(o)(ee),
6402
6403
  "arrow-navigation": h.arrowNavigation,
6403
- "is-last": h.autoApply && !c(k).keepActionRow,
6404
+ "is-last": h.autoApply && !c(g).keepActionRow,
6404
6405
  "esc-close": h.escClose,
6405
- height: c(k).modeHeight,
6406
+ height: c(g).modeHeight,
6406
6407
  config: h.config,
6407
6408
  "no-overlay-focus": !!(h.noOverlayFocus || h.textInput),
6408
6409
  "use-relative": "",
@@ -6414,12 +6415,12 @@ const Au = ({
6414
6415
  Ee(zl, Fe(h.$props, {
6415
6416
  items: c(v)(ee),
6416
6417
  instance: ee,
6417
- "show-year-picker": c(f)[ee],
6418
- year: c(b)(ee),
6419
- "is-disabled": (se) => c(w)(ee, se),
6418
+ "show-year-picker": c(p)[ee],
6419
+ year: c(w)(ee),
6420
+ "is-disabled": (se) => c(_)(ee, se),
6420
6421
  onHandleYear: (se) => c(x)(ee, se),
6421
6422
  onYearSelect: (se) => c(C)(se, ee),
6422
- onToggleYearPicker: (se) => c(R)(ee, se == null ? void 0 : se.flow, se == null ? void 0 : se.show)
6423
+ onToggleYearPicker: (se) => c(O)(ee, se == null ? void 0 : se.flow, se == null ? void 0 : se.show)
6423
6424
  }), at({ _: 2 }, [
6424
6425
  Se(c(r), (se, pe) => ({
6425
6426
  name: se,
@@ -6447,32 +6448,32 @@ const Au = ({
6447
6448
  }, 8, ["multi-calendars", "collapse"]));
6448
6449
  }
6449
6450
  }), Xu = (e, a) => {
6450
- const { modelValue: t } = Da(e, a), n = U(null), { defaultedHighlight: l, defaultedMultiDates: r, defaultedFilters: s, defaultedRange: o, propDates: v } = Ie(e), b = U();
6451
+ const { modelValue: t } = Da(e, a), n = U(null), { defaultedHighlight: l, defaultedMultiDates: r, defaultedFilters: s, defaultedRange: o, propDates: v } = Ie(e), w = U();
6451
6452
  Ue(() => {
6452
- e.startDate && (t.value && e.focusStartDate || !t.value) && (b.value = we(q(e.startDate)));
6453
+ e.startDate && (t.value && e.focusStartDate || !t.value) && (w.value = we(q(e.startDate)));
6453
6454
  });
6454
- const w = (D) => Array.isArray(t.value) ? t.value.some((_) => we(_) === D) : t.value ? we(t.value) === D : !1, u = (D) => o.value.enabled && Array.isArray(t.value) ? La(t.value, n.value, f(D)) : !1, k = H(() => ra(An(e.yearRange, e.locale, e.reverseYears), (D) => {
6455
- const _ = w(D.value), W = wa(
6455
+ const _ = (D) => Array.isArray(t.value) ? t.value.some((k) => we(k) === D) : t.value ? we(t.value) === D : !1, u = (D) => o.value.enabled && Array.isArray(t.value) ? La(t.value, n.value, p(D)) : !1, g = H(() => ra(An(e.yearRange, e.locale, e.reverseYears), (D) => {
6456
+ const k = _(D.value), W = wa(
6456
6457
  D.value,
6457
6458
  oa(v.value.minDate),
6458
6459
  oa(v.value.maxDate)
6459
- ) || s.value.years.includes(D.value), G = u(D.value) && !_, P = Sn(l.value, D.value);
6460
- return { active: _, disabled: W, isBetween: G, highlighted: P };
6461
- })), f = (D) => Mt(ht(/* @__PURE__ */ new Date()), D);
6460
+ ) || s.value.years.includes(D.value), G = u(D.value) && !k, P = Sn(l.value, D.value);
6461
+ return { active: k, disabled: W, isBetween: G, highlighted: P };
6462
+ })), p = (D) => Mt(ht(/* @__PURE__ */ new Date()), D);
6462
6463
  return {
6463
- groupedYears: k,
6464
+ groupedYears: g,
6464
6465
  modelValue: t,
6465
- focusYear: b,
6466
+ focusYear: w,
6466
6467
  setHoverValue: (D) => {
6467
6468
  n.value = Mt(ht(/* @__PURE__ */ new Date()), D);
6468
6469
  },
6469
6470
  selectYear: (D) => {
6470
- var _;
6471
+ var k;
6471
6472
  if (a("update-month-year", { instance: 0, year: D }), r.value.enabled)
6472
- 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);
6473
- o.value.enabled ? (t.value = Yn(t, f(D), a), mt().then(() => {
6473
+ return t.value ? Array.isArray(t.value) && (((k = t.value) == null ? void 0 : k.map((W) => we(W))).includes(D) ? t.value = t.value.filter((W) => we(W) !== D) : t.value.push(Mt(ct(q()), D))) : t.value = [Mt(ct(q()), D)], a("auto-apply", !0);
6474
+ o.value.enabled ? (t.value = Yn(t, p(D), a), mt().then(() => {
6474
6475
  Va(t.value, a, e.autoApply, e.modelAuto);
6475
- })) : (t.value = f(D), a("auto-apply"));
6476
+ })) : (t.value = p(D), a("auto-apply"));
6476
6477
  }
6477
6478
  };
6478
6479
  }, Ju = /* @__PURE__ */ Te({
@@ -6492,11 +6493,11 @@ const Au = ({
6492
6493
  "update-month-year"
6493
6494
  ],
6494
6495
  setup(e, { expose: a, emit: t }) {
6495
- const n = t, l = e, { groupedYears: r, modelValue: s, focusYear: o, selectYear: v, setHoverValue: b } = Xu(l, n), { defaultedConfig: w } = Ie(l);
6496
+ const n = t, l = e, { groupedYears: r, modelValue: s, focusYear: o, selectYear: v, setHoverValue: w } = Xu(l, n), { defaultedConfig: _ } = Ie(l);
6496
6497
  return a({ getSidebarProps: () => ({
6497
6498
  modelValue: s,
6498
6499
  selectYear: v
6499
- }) }), (u, k) => (p(), A("div", null, [
6500
+ }) }), (u, g) => (f(), A("div", null, [
6500
6501
  u.$slots["top-extra"] ? ne(u.$slots, "top-extra", {
6501
6502
  key: 0,
6502
6503
  value: u.internalModelValue
@@ -6504,25 +6505,25 @@ const Au = ({
6504
6505
  u.$slots["month-year"] ? ne(u.$slots, "month-year", Qe(Fe({ key: 1 }, {
6505
6506
  years: c(r),
6506
6507
  selectYear: c(v)
6507
- }))) : (p(), be(Ta, {
6508
+ }))) : (f(), be(Ta, {
6508
6509
  key: 2,
6509
6510
  items: c(r),
6510
- "is-last": u.autoApply && !c(w).keepActionRow,
6511
- height: c(w).modeHeight,
6511
+ "is-last": u.autoApply && !c(_).keepActionRow,
6512
+ height: c(_).modeHeight,
6512
6513
  config: u.config,
6513
6514
  "no-overlay-focus": !!(u.noOverlayFocus || u.textInput),
6514
6515
  "focus-value": c(o),
6515
6516
  type: "year",
6516
6517
  "use-relative": "",
6517
6518
  onSelected: c(v),
6518
- onHoverValue: c(b)
6519
+ onHoverValue: c(w)
6519
6520
  }, at({ _: 2 }, [
6520
6521
  u.$slots["year-overlay-value"] ? {
6521
6522
  name: "item",
6522
- fn: fe(({ item: f }) => [
6523
+ fn: fe(({ item: p }) => [
6523
6524
  ne(u.$slots, "year-overlay-value", {
6524
- text: f.text,
6525
- value: f.value
6525
+ text: p.text,
6526
+ value: p.value
6526
6527
  })
6527
6528
  ]),
6528
6529
  key: "0"
@@ -6561,21 +6562,21 @@ const Au = ({
6561
6562
  "am-pm-change"
6562
6563
  ],
6563
6564
  setup(e, { expose: a, emit: t }) {
6564
- const n = t, l = e, { setTimePickerElements: r, setTimePickerBackRef: s } = Nt(), { defaultedAriaLabels: o, defaultedTransitions: v, defaultedFilters: b, defaultedConfig: w, defaultedRange: u } = Ie(l), { transitionName: k, showTransition: f } = Ma(v), D = _a({
6565
+ const n = t, l = e, { setTimePickerElements: r, setTimePickerBackRef: s } = Nt(), { defaultedAriaLabels: o, defaultedTransitions: v, defaultedFilters: w, defaultedConfig: _, defaultedRange: u } = Ie(l), { transitionName: g, showTransition: p } = Ma(v), D = _a({
6565
6566
  hours: !1,
6566
6567
  minutes: !1,
6567
6568
  seconds: !1
6568
- }), _ = U("AM"), W = U(null), G = U([]), P = U();
6569
+ }), k = U("AM"), W = U(null), G = U([]), P = U();
6569
6570
  Ue(() => {
6570
6571
  n("mounted");
6571
6572
  });
6572
- const R = (d) => Oe(/* @__PURE__ */ new Date(), {
6573
+ const O = (d) => Oe(/* @__PURE__ */ new Date(), {
6573
6574
  hours: d.hours,
6574
6575
  minutes: d.minutes,
6575
6576
  seconds: l.enableSeconds ? d.seconds : 0,
6576
6577
  milliseconds: 0
6577
6578
  }), C = H(
6578
- () => (d) => g(d, l[d]) || S(d, l[d])
6579
+ () => (d) => b(d, l[d]) || S(d, l[d])
6579
6580
  ), x = H(() => ({ hours: l.hours, minutes: l.minutes, seconds: l.seconds })), S = (d, j) => u.value.enabled && !u.value.disableTimeRangeValidation ? !l.validateTime(d, j) : !1, h = (d, j) => {
6580
6581
  if (u.value.enabled && !u.value.disableTimeRangeValidation) {
6581
6582
  const ce = j ? +l[`${d}Increment`] : -+l[`${d}Increment`], F = l[d] + ce;
@@ -6605,19 +6606,19 @@ const Au = ({
6605
6606
  return { text: j < 10 ? `0${j}` : `${j}`, value: j };
6606
6607
  }
6607
6608
  return { text: l[d] < 10 ? `0${l[d]}` : `${l[d]}`, value: l[d] };
6608
- }), g = (d, j) => {
6609
+ }), b = (d, j) => {
6609
6610
  var ce;
6610
6611
  if (!l.disabledTimesConfig)
6611
6612
  return !1;
6612
6613
  const F = l.disabledTimesConfig(l.order, d === "hours" ? j : void 0);
6613
6614
  return F[d] ? !!((ce = F[d]) != null && ce.includes(j)) : !0;
6614
- }, $ = (d, j) => j !== "hours" || _.value === "AM" ? d : d + 12, Q = (d) => {
6615
+ }, $ = (d, j) => j !== "hours" || k.value === "AM" ? d : d + 12, Q = (d) => {
6615
6616
  const j = l.is24 ? 24 : 12, ce = d === "hours" ? j : 60, F = +l[`${d}GridIncrement`], M = d === "hours" && !l.is24 ? F : 0, X = [];
6616
6617
  for (let he = M; he < ce; he += F)
6617
6618
  X.push({ value: l.is24 ? he : $(he, d), text: he < 10 ? `0${he}` : `${he}` });
6618
- return d === "hours" && !l.is24 && X.unshift({ value: _.value === "PM" ? 12 : 0, text: "12" }), ra(X, (he) => ({ active: !1, disabled: b.value.times[d].includes(he.value) || !Y(he.value, d) || g(d, he.value) || S(d, he.value) }));
6619
+ return d === "hours" && !l.is24 && X.unshift({ value: k.value === "PM" ? 12 : 0, text: "12" }), ra(X, (he) => ({ active: !1, disabled: w.value.times[d].includes(he.value) || !Y(he.value, d) || b(d, he.value) || S(d, he.value) }));
6619
6620
  }, re = (d) => d >= 0 ? d : 59, me = (d) => d >= 0 ? d : 23, Y = (d, j) => {
6620
- const ce = l.minTime ? R(en(l.minTime)) : null, F = l.maxTime ? R(en(l.maxTime)) : null, M = R(
6621
+ const ce = l.minTime ? O(en(l.minTime)) : null, F = l.maxTime ? O(en(l.maxTime)) : null, M = O(
6621
6622
  en(
6622
6623
  x.value,
6623
6624
  j,
@@ -6634,11 +6635,11 @@ const Au = ({
6634
6635
  Y(+l[d] + M, d) && n(
6635
6636
  `update:${d}`,
6636
6637
  E(d)(F({ [d]: +l[d] }, { [d]: +l[`${d}Increment`] }))
6637
- ), !(ce != null && ce.keyboard) && w.value.timeArrowHoldThreshold && (P.value = setTimeout(() => {
6638
+ ), !(ce != null && ce.keyboard) && _.value.timeArrowHoldThreshold && (P.value = setTimeout(() => {
6638
6639
  te(d, j);
6639
- }, w.value.timeArrowHoldThreshold));
6640
- }, y = (d) => l.is24 ? d : (d >= 12 ? _.value = "PM" : _.value = "AM", Zi(d)), ue = () => {
6641
- _.value === "PM" ? (_.value = "AM", n("update:hours", l.hours - 12)) : (_.value = "PM", n("update:hours", l.hours + 12)), n("am-pm-change", _.value);
6640
+ }, _.value.timeArrowHoldThreshold));
6641
+ }, y = (d) => l.is24 ? d : (d >= 12 ? k.value = "PM" : k.value = "AM", Zi(d)), ue = () => {
6642
+ k.value === "PM" ? (k.value = "AM", n("update:hours", l.hours - 12)) : (k.value = "PM", n("update:hours", l.hours + 12)), n("am-pm-change", k.value);
6642
6643
  }, ge = (d) => {
6643
6644
  D[d] = !0;
6644
6645
  }, K = (d, j, ce) => {
@@ -6653,16 +6654,16 @@ const Au = ({
6653
6654
  }, Z = (d, j) => (i(d), n(`update:${d}`, j));
6654
6655
  return a({ openChildCmp: ge }), (d, j) => {
6655
6656
  var ce;
6656
- return d.disabled ? I("", !0) : (p(), A("div", Zu, [
6657
- (p(!0), A(_e, null, Se(V.value, (F, M) => {
6657
+ return d.disabled ? I("", !0) : (f(), A("div", Zu, [
6658
+ (f(!0), A(_e, null, Se(V.value, (F, M) => {
6658
6659
  var X, he, Re;
6659
- return p(), A("div", {
6660
+ return f(), A("div", {
6660
6661
  key: M,
6661
6662
  class: ye(L.value)
6662
6663
  }, [
6663
- F.separator ? (p(), A(_e, { key: 0 }, [
6664
+ F.separator ? (f(), A(_e, { key: 0 }, [
6664
6665
  ut(" : ")
6665
- ], 64)) : (p(), A(_e, { key: 1 }, [
6666
+ ], 64)) : (f(), A(_e, { key: 1 }, [
6666
6667
  z("button", {
6667
6668
  ref_for: !0,
6668
6669
  ref: (Pe) => K(Pe, M, 0),
@@ -6678,16 +6679,16 @@ const Au = ({
6678
6679
  "aria-label": (X = c(o)) == null ? void 0 : X.incrementValue(F.type),
6679
6680
  tabindex: "0",
6680
6681
  onKeydown: (Pe) => c(ot)(Pe, () => te(F.type, !0, { keyboard: !0 }), !0),
6681
- onClick: (Pe) => c(w).timeArrowHoldThreshold ? void 0 : te(F.type, !0),
6682
- onMousedown: (Pe) => c(w).timeArrowHoldThreshold ? te(F.type, !0) : void 0,
6682
+ onClick: (Pe) => c(_).timeArrowHoldThreshold ? void 0 : te(F.type, !0),
6683
+ onMousedown: (Pe) => c(_).timeArrowHoldThreshold ? te(F.type, !0) : void 0,
6683
6684
  onMouseup: le
6684
6685
  }, [
6685
- l.timePickerInline ? (p(), A(_e, { key: 1 }, [
6686
+ l.timePickerInline ? (f(), A(_e, { key: 1 }, [
6686
6687
  ed,
6687
6688
  td
6688
- ], 64)) : (p(), A(_e, { key: 0 }, [
6689
+ ], 64)) : (f(), A(_e, { key: 0 }, [
6689
6690
  d.$slots["arrow-up"] ? ne(d.$slots, "arrow-up", { key: 0 }) : I("", !0),
6690
- d.$slots["arrow-up"] ? I("", !0) : (p(), be(c($n), { key: 1 }))
6691
+ d.$slots["arrow-up"] ? I("", !0) : (f(), be(c($n), { key: 1 }))
6691
6692
  ], 64))
6692
6693
  ], 42, Ku),
6693
6694
  z("button", {
@@ -6713,7 +6714,7 @@ const Au = ({
6713
6714
  text: m.value(F.type).text,
6714
6715
  value: m.value(F.type).value
6715
6716
  }) : I("", !0),
6716
- d.$slots[F.type] ? I("", !0) : (p(), A(_e, { key: 1 }, [
6717
+ d.$slots[F.type] ? I("", !0) : (f(), A(_e, { key: 1 }, [
6717
6718
  ut(ke(m.value(F.type).text), 1)
6718
6719
  ], 64))
6719
6720
  ], 42, ad),
@@ -6732,28 +6733,28 @@ const Au = ({
6732
6733
  "aria-label": (Re = c(o)) == null ? void 0 : Re.decrementValue(F.type),
6733
6734
  tabindex: "0",
6734
6735
  onKeydown: (Pe) => c(ot)(Pe, () => te(F.type, !1, { keyboard: !0 }), !0),
6735
- onClick: (Pe) => c(w).timeArrowHoldThreshold ? void 0 : te(F.type, !1),
6736
- onMousedown: (Pe) => c(w).timeArrowHoldThreshold ? te(F.type, !1) : void 0,
6736
+ onClick: (Pe) => c(_).timeArrowHoldThreshold ? void 0 : te(F.type, !1),
6737
+ onMousedown: (Pe) => c(_).timeArrowHoldThreshold ? te(F.type, !1) : void 0,
6737
6738
  onMouseup: le
6738
6739
  }, [
6739
- l.timePickerInline ? (p(), A(_e, { key: 1 }, [
6740
+ l.timePickerInline ? (f(), A(_e, { key: 1 }, [
6740
6741
  ld,
6741
6742
  rd
6742
- ], 64)) : (p(), A(_e, { key: 0 }, [
6743
+ ], 64)) : (f(), A(_e, { key: 0 }, [
6743
6744
  d.$slots["arrow-down"] ? ne(d.$slots, "arrow-down", { key: 0 }) : I("", !0),
6744
- d.$slots["arrow-down"] ? I("", !0) : (p(), be(c(Cn), { key: 1 }))
6745
+ d.$slots["arrow-down"] ? I("", !0) : (f(), be(c(Cn), { key: 1 }))
6745
6746
  ], 64))
6746
6747
  ], 42, nd)
6747
6748
  ], 64))
6748
6749
  ], 2);
6749
6750
  }), 128)),
6750
- d.is24 ? I("", !0) : (p(), A("div", od, [
6751
+ d.is24 ? I("", !0) : (f(), A("div", od, [
6751
6752
  d.$slots["am-pm-button"] ? ne(d.$slots, "am-pm-button", {
6752
6753
  key: 0,
6753
6754
  toggle: ue,
6754
- value: _.value
6755
+ value: k.value
6755
6756
  }) : I("", !0),
6756
- d.$slots["am-pm-button"] ? I("", !0) : (p(), A("button", {
6757
+ d.$slots["am-pm-button"] ? I("", !0) : (f(), A("button", {
6757
6758
  key: 1,
6758
6759
  ref_key: "amPmButton",
6759
6760
  ref: W,
@@ -6764,18 +6765,18 @@ const Au = ({
6764
6765
  tabindex: "0",
6765
6766
  onClick: ue,
6766
6767
  onKeydown: j[0] || (j[0] = (F) => c(ot)(F, () => ue(), !0))
6767
- }, ke(_.value), 41, sd))
6768
+ }, ke(k.value), 41, sd))
6768
6769
  ])),
6769
- (p(!0), A(_e, null, Se(oe.value, (F, M) => (p(), be(lt, {
6770
+ (f(!0), A(_e, null, Se(oe.value, (F, M) => (f(), be(lt, {
6770
6771
  key: M,
6771
- name: c(k)(D[F.type]),
6772
- css: c(f)
6772
+ name: c(g)(D[F.type]),
6773
+ css: c(p)
6773
6774
  }, {
6774
6775
  default: fe(() => [
6775
- D[F.type] ? (p(), be(Ta, {
6776
+ D[F.type] ? (f(), be(Ta, {
6776
6777
  key: 0,
6777
6778
  items: Q(F.type),
6778
- "is-last": d.autoApply && !c(w).keepActionRow,
6779
+ "is-last": d.autoApply && !c(_).keepActionRow,
6779
6780
  "esc-close": d.escClose,
6780
6781
  type: F.type,
6781
6782
  "text-input": d.textInput,
@@ -6788,7 +6789,7 @@ const Au = ({
6788
6789
  }, at({
6789
6790
  "button-icon": fe(() => [
6790
6791
  d.$slots["clock-icon"] ? ne(d.$slots, "clock-icon", { key: 0 }) : I("", !0),
6791
- d.$slots["clock-icon"] ? I("", !0) : (p(), be(Ba(d.timePickerInline ? c(sa) : c(xn)), { key: 1 }))
6792
+ d.$slots["clock-icon"] ? I("", !0) : (f(), be(Ba(d.timePickerInline ? c(sa) : c(xn)), { key: 1 }))
6792
6793
  ]),
6793
6794
  _: 2
6794
6795
  }, [
@@ -6845,17 +6846,17 @@ const Au = ({
6845
6846
  "am-pm-change"
6846
6847
  ],
6847
6848
  setup(e, { expose: a, emit: t }) {
6848
- const n = t, l = e, { buildMatrix: r, setTimePicker: s } = Nt(), o = It(), { defaultedTransitions: v, defaultedAriaLabels: b, defaultedTextInput: w, defaultedConfig: u, defaultedRange: k } = Ie(l), { transitionName: f, showTransition: D } = Ma(v), { hideNavigationButtons: _ } = Ia(), W = U(null), G = U(null), P = U([]), R = U(null);
6849
+ const n = t, l = e, { buildMatrix: r, setTimePicker: s } = Nt(), o = It(), { defaultedTransitions: v, defaultedAriaLabels: w, defaultedTextInput: _, defaultedConfig: u, defaultedRange: g } = Ie(l), { transitionName: p, showTransition: D } = Ma(v), { hideNavigationButtons: k } = Ia(), W = U(null), G = U(null), P = U([]), O = U(null);
6849
6850
  Ue(() => {
6850
6851
  n("mount"), !l.timePicker && l.arrowNavigation ? r([qe(W.value)], "time") : s(!0, l.timePicker);
6851
6852
  });
6852
- const C = H(() => k.value.enabled && l.modelAuto ? Sl(l.internalModelValue) : !0), x = U(!1), S = ($) => ({
6853
+ const C = H(() => g.value.enabled && l.modelAuto ? Sl(l.internalModelValue) : !0), x = U(!1), S = ($) => ({
6853
6854
  hours: Array.isArray(l.hours) ? l.hours[$] : l.hours,
6854
6855
  minutes: Array.isArray(l.minutes) ? l.minutes[$] : l.minutes,
6855
6856
  seconds: Array.isArray(l.seconds) ? l.seconds[$] : l.seconds
6856
6857
  }), h = H(() => {
6857
6858
  const $ = [];
6858
- if (k.value.enabled)
6859
+ if (g.value.enabled)
6859
6860
  for (let Q = 0; Q < 2; Q++)
6860
6861
  $.push(S(Q));
6861
6862
  else
@@ -6869,51 +6870,51 @@ const Au = ({
6869
6870
  dp__btn: !0,
6870
6871
  dp__button: !0,
6871
6872
  dp__button_bottom: l.autoApply && !u.value.keepActionRow
6872
- })), se = it(o, "timePicker"), pe = ($, Q, re) => k.value.enabled ? Q === 0 ? [$, h.value[1][re]] : [h.value[0][re], $] : $, L = ($) => {
6873
+ })), se = it(o, "timePicker"), pe = ($, Q, re) => g.value.enabled ? Q === 0 ? [$, h.value[1][re]] : [h.value[0][re], $] : $, L = ($) => {
6873
6874
  n("update:hours", $);
6874
6875
  }, V = ($) => {
6875
6876
  n("update:minutes", $);
6876
6877
  }, oe = ($) => {
6877
6878
  n("update:seconds", $);
6878
6879
  }, m = () => {
6879
- if (R.value && !w.value.enabled && !l.noOverlayFocus) {
6880
- const $ = El(R.value);
6880
+ if (O.value && !_.value.enabled && !l.noOverlayFocus) {
6881
+ const $ = El(O.value);
6881
6882
  $ && $.focus({ preventScroll: !0 });
6882
6883
  }
6883
- }, g = ($) => {
6884
+ }, b = ($) => {
6884
6885
  n("overlay-closed", $);
6885
6886
  };
6886
6887
  return a({ toggleTimePicker: N }), ($, Q) => {
6887
6888
  var re;
6888
- return p(), A("div", ud, [
6889
- !$.timePicker && !$.timePickerInline ? Xe((p(), A("button", {
6889
+ return f(), A("div", ud, [
6890
+ !$.timePicker && !$.timePickerInline ? Xe((f(), A("button", {
6890
6891
  key: 0,
6891
6892
  ref_key: "openTimePickerBtn",
6892
6893
  ref: W,
6893
6894
  type: "button",
6894
6895
  class: ye(ee.value),
6895
- "aria-label": (re = c(b)) == null ? void 0 : re.openTimePicker,
6896
+ "aria-label": (re = c(w)) == null ? void 0 : re.openTimePicker,
6896
6897
  tabindex: $.noOverlayFocus ? void 0 : 0,
6897
6898
  "data-test": "open-time-picker-btn",
6898
6899
  onKeydown: Q[0] || (Q[0] = (me) => c(ot)(me, () => N(!0))),
6899
6900
  onClick: Q[1] || (Q[1] = (me) => N(!0))
6900
6901
  }, [
6901
6902
  $.$slots["clock-icon"] ? ne($.$slots, "clock-icon", { key: 0 }) : I("", !0),
6902
- $.$slots["clock-icon"] ? I("", !0) : (p(), be(c(xn), { key: 1 }))
6903
+ $.$slots["clock-icon"] ? I("", !0) : (f(), be(c(xn), { key: 1 }))
6903
6904
  ], 42, dd)), [
6904
- [zt, !c(_)($.hideNavigation, "time")]
6905
+ [zt, !c(k)($.hideNavigation, "time")]
6905
6906
  ]) : I("", !0),
6906
6907
  Ee(lt, {
6907
- name: c(f)(x.value),
6908
+ name: c(p)(x.value),
6908
6909
  css: c(D) && !$.timePickerInline
6909
6910
  }, {
6910
6911
  default: fe(() => {
6911
6912
  var me;
6912
6913
  return [
6913
- x.value || $.timePicker || $.timePickerInline ? (p(), A("div", {
6914
+ x.value || $.timePicker || $.timePickerInline ? (f(), A("div", {
6914
6915
  key: 0,
6915
6916
  ref_key: "overlayRef",
6916
- ref: R,
6917
+ ref: O,
6917
6918
  class: ye({
6918
6919
  dp__overlay: !$.timePickerInline,
6919
6920
  "dp--overlay-absolute": !l.timePicker && !$.timePickerInline,
@@ -6937,11 +6938,11 @@ const Au = ({
6937
6938
  setMinutes: V,
6938
6939
  setSeconds: oe
6939
6940
  }) : I("", !0),
6940
- $.$slots["time-picker-overlay"] ? I("", !0) : (p(), A("div", {
6941
+ $.$slots["time-picker-overlay"] ? I("", !0) : (f(), A("div", {
6941
6942
  key: 1,
6942
6943
  class: ye($.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
6943
6944
  }, [
6944
- (p(!0), A(_e, null, Se(h.value, (Y, B) => Xe((p(), be(id, Fe({
6945
+ (f(!0), A(_e, null, Se(h.value, (Y, B) => Xe((f(), be(id, Fe({
6945
6946
  key: B,
6946
6947
  ref_for: !0
6947
6948
  }, {
@@ -6962,7 +6963,7 @@ const Au = ({
6962
6963
  "onUpdate:minutes": (i) => V(pe(i, B, "minutes")),
6963
6964
  "onUpdate:seconds": (i) => oe(pe(i, B, "seconds")),
6964
6965
  onMounted: m,
6965
- onOverlayClosed: g,
6966
+ onOverlayClosed: b,
6966
6967
  onOverlayOpened: Q[2] || (Q[2] = (i) => $.$emit("overlay-opened", i)),
6967
6968
  onAmPmChange: Q[3] || (Q[3] = (i) => $.$emit("am-pm-change", i))
6968
6969
  }), at({ _: 2 }, [
@@ -6976,21 +6977,21 @@ const Au = ({
6976
6977
  [zt, B === 0 ? !0 : C.value]
6977
6978
  ])), 128))
6978
6979
  ], 2)),
6979
- !$.timePicker && !$.timePickerInline ? Xe((p(), A("button", {
6980
+ !$.timePicker && !$.timePickerInline ? Xe((f(), A("button", {
6980
6981
  key: 2,
6981
6982
  ref_key: "closeTimePickerBtn",
6982
6983
  ref: G,
6983
6984
  type: "button",
6984
6985
  class: ye(ee.value),
6985
- "aria-label": (me = c(b)) == null ? void 0 : me.closeTimePicker,
6986
+ "aria-label": (me = c(w)) == null ? void 0 : me.closeTimePicker,
6986
6987
  tabindex: "0",
6987
6988
  onKeydown: Q[4] || (Q[4] = (Y) => c(ot)(Y, () => N(!1))),
6988
6989
  onClick: Q[5] || (Q[5] = (Y) => N(!1))
6989
6990
  }, [
6990
6991
  $.$slots["calendar-icon"] ? ne($.$slots, "calendar-icon", { key: 0 }) : I("", !0),
6991
- $.$slots["calendar-icon"] ? I("", !0) : (p(), be(c(sa), { key: 1 }))
6992
+ $.$slots["calendar-icon"] ? I("", !0) : (f(), be(c(sa), { key: 1 }))
6992
6993
  ], 42, md)), [
6993
- [zt, !c(_)($.hideNavigation, "time")]
6994
+ [zt, !c(k)($.hideNavigation, "time")]
6994
6995
  ]) : I("", !0)
6995
6996
  ], 2)
6996
6997
  ], 14, cd)) : I("", !0)
@@ -7002,13 +7003,13 @@ const Au = ({
7002
7003
  };
7003
7004
  }
7004
7005
  }), Ql = (e, a, t, n) => {
7005
- const { defaultedRange: l } = Ie(e), r = (R, C) => Array.isArray(a[R]) ? a[R][C] : a[R], s = (R) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[R] : a.seconds : 0, o = (R, C) => R ? C !== void 0 ? Bt(R, r("hours", C), r("minutes", C), s(C)) : Bt(R, a.hours, a.minutes, s()) : Dn(q(), s(C)), v = (R, C) => {
7006
- a[R] = C;
7007
- }, b = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), w = (R, C) => {
7006
+ const { defaultedRange: l } = Ie(e), r = (O, C) => Array.isArray(a[O]) ? a[O][C] : a[O], s = (O) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[O] : a.seconds : 0, o = (O, C) => O ? C !== void 0 ? Bt(O, r("hours", C), r("minutes", C), s(C)) : Bt(O, a.hours, a.minutes, s()) : Dn(q(), s(C)), v = (O, C) => {
7007
+ a[O] = C;
7008
+ }, w = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), _ = (O, C) => {
7008
7009
  const x = Object.fromEntries(
7009
- Object.keys(a).map((S) => S === R ? [S, C] : [S, a[S]].slice())
7010
+ Object.keys(a).map((S) => S === O ? [S, C] : [S, a[S]].slice())
7010
7011
  );
7011
- if (b.value && !l.value.disableTimeRangeValidation) {
7012
+ if (w.value && !l.value.disableTimeRangeValidation) {
7012
7013
  const S = (N) => t.value ? Bt(
7013
7014
  t.value[N],
7014
7015
  x.hours[N],
@@ -7018,31 +7019,31 @@ const Au = ({
7018
7019
  return !(De(S(0), S(1)) && (na(S(0), h(1)) || ba(S(1), h(0))));
7019
7020
  }
7020
7021
  return !0;
7021
- }, u = (R, C) => {
7022
- w(R, C) && (v(R, C), n && n());
7023
- }, k = (R) => {
7024
- u("hours", R);
7025
- }, f = (R) => {
7026
- u("minutes", R);
7027
- }, D = (R) => {
7028
- u("seconds", R);
7029
- }, _ = (R, C, x, S) => {
7030
- C && k(R), !C && !x && f(R), x && D(R), t.value && S(t.value);
7031
- }, W = (R) => {
7032
- if (R) {
7033
- const C = Array.isArray(R), x = C ? [+R[0].hours, +R[1].hours] : +R.hours, S = C ? [+R[0].minutes, +R[1].minutes] : +R.minutes, h = C ? [+R[0].seconds, +R[1].seconds] : +R.seconds;
7022
+ }, u = (O, C) => {
7023
+ _(O, C) && (v(O, C), n && n());
7024
+ }, g = (O) => {
7025
+ u("hours", O);
7026
+ }, p = (O) => {
7027
+ u("minutes", O);
7028
+ }, D = (O) => {
7029
+ u("seconds", O);
7030
+ }, k = (O, C, x, S) => {
7031
+ C && g(O), !C && !x && p(O), x && D(O), t.value && S(t.value);
7032
+ }, W = (O) => {
7033
+ if (O) {
7034
+ const C = Array.isArray(O), x = C ? [+O[0].hours, +O[1].hours] : +O.hours, S = C ? [+O[0].minutes, +O[1].minutes] : +O.minutes, h = C ? [+O[0].seconds, +O[1].seconds] : +O.seconds;
7034
7035
  v("hours", x), v("minutes", S), e.enableSeconds && v("seconds", h);
7035
7036
  }
7036
- }, G = (R, C) => {
7037
+ }, G = (O, C) => {
7037
7038
  const x = {
7038
- hours: Array.isArray(a.hours) ? a.hours[R] : a.hours,
7039
+ hours: Array.isArray(a.hours) ? a.hours[O] : a.hours,
7039
7040
  disabledArr: []
7040
7041
  };
7041
- return (C || C === 0) && (x.hours = C), Array.isArray(e.disabledTimes) && (x.disabledArr = l.value.enabled && Array.isArray(e.disabledTimes[R]) ? e.disabledTimes[R] : e.disabledTimes), x;
7042
- }, P = H(() => (R, C) => {
7042
+ return (C || C === 0) && (x.hours = C), Array.isArray(e.disabledTimes) && (x.disabledArr = l.value.enabled && Array.isArray(e.disabledTimes[O]) ? e.disabledTimes[O] : e.disabledTimes), x;
7043
+ }, P = H(() => (O, C) => {
7043
7044
  var x;
7044
7045
  if (Array.isArray(e.disabledTimes)) {
7045
- const { disabledArr: S, hours: h } = G(R, C), N = S.filter((ee) => +ee.hours === h);
7046
+ const { disabledArr: S, hours: h } = G(O, C), N = S.filter((ee) => +ee.hours === h);
7046
7047
  return ((x = N[0]) == null ? void 0 : x.minutes) === "*" ? { hours: [h], minutes: void 0, seconds: void 0 } : {
7047
7048
  hours: [],
7048
7049
  minutes: (N == null ? void 0 : N.map((ee) => +ee.minutes)) ?? [],
@@ -7053,35 +7054,35 @@ const Au = ({
7053
7054
  });
7054
7055
  return {
7055
7056
  setTime: v,
7056
- updateHours: k,
7057
- updateMinutes: f,
7057
+ updateHours: g,
7058
+ updateMinutes: p,
7058
7059
  updateSeconds: D,
7059
7060
  getSetDateTime: o,
7060
- updateTimeValues: _,
7061
+ updateTimeValues: k,
7061
7062
  getSecondsValue: s,
7062
7063
  assignStartTime: W,
7063
- validateTime: w,
7064
+ validateTime: _,
7064
7065
  disabledTimesConfig: P
7065
7066
  };
7066
7067
  }, vd = (e, a) => {
7067
- const { modelValue: t, time: n } = Da(e, a), { defaultedStartTime: l, defaultedRange: r } = Ie(e), { updateTimeValues: s, getSetDateTime: o, setTime: v, assignStartTime: b, disabledTimesConfig: w, validateTime: u } = Ql(e, n, t, k);
7068
- function k() {
7068
+ const { modelValue: t, time: n } = Da(e, a), { defaultedStartTime: l, defaultedRange: r } = Ie(e), { updateTimeValues: s, getSetDateTime: o, setTime: v, assignStartTime: w, disabledTimesConfig: _, validateTime: u } = Ql(e, n, t, g);
7069
+ function g() {
7069
7070
  a("update-flow-step");
7070
7071
  }
7071
- const f = (C) => {
7072
+ const p = (C) => {
7072
7073
  const { hours: x, minutes: S, seconds: h } = C;
7073
7074
  return { hours: +x, minutes: +S, seconds: h ? +h : 0 };
7074
7075
  }, D = () => {
7075
7076
  if (e.startTime) {
7076
7077
  if (Array.isArray(e.startTime)) {
7077
- const x = f(e.startTime[0]), S = f(e.startTime[1]);
7078
+ const x = p(e.startTime[0]), S = p(e.startTime[1]);
7078
7079
  return [Oe(q(), x), Oe(q(), S)];
7079
7080
  }
7080
- const C = f(e.startTime);
7081
+ const C = p(e.startTime);
7081
7082
  return Oe(q(), C);
7082
7083
  }
7083
7084
  return r.value.enabled ? [null, null] : null;
7084
- }, _ = () => {
7085
+ }, k = () => {
7085
7086
  if (r.value.enabled) {
7086
7087
  const [C, x] = D();
7087
7088
  t.value = [o(C, 0), o(x, 1)];
@@ -7099,17 +7100,17 @@ const Au = ({
7099
7100
  };
7100
7101
  Ue(() => {
7101
7102
  if (!e.shadow)
7102
- return b(l.value), t.value ? P() : _();
7103
+ return w(l.value), t.value ? P() : k();
7103
7104
  });
7104
- const R = () => {
7105
+ const O = () => {
7105
7106
  Array.isArray(t.value) ? t.value = t.value.map((C, x) => C && o(C, x)) : t.value = o(t.value), a("time-update");
7106
7107
  };
7107
7108
  return {
7108
7109
  modelValue: t,
7109
7110
  time: n,
7110
- disabledTimesConfig: w,
7111
+ disabledTimesConfig: _,
7111
7112
  updateTime: (C, x = !0, S = !1) => {
7112
- s(C, x, S, R);
7113
+ s(C, x, S, O);
7113
7114
  },
7114
7115
  validateTime: u
7115
7116
  };
@@ -7131,17 +7132,17 @@ const Au = ({
7131
7132
  "overlay-toggle"
7132
7133
  ],
7133
7134
  setup(e, { expose: a, emit: t }) {
7134
- const n = t, l = e, r = It(), s = it(r, "timePicker"), o = U(null), { time: v, modelValue: b, disabledTimesConfig: w, updateTime: u, validateTime: k } = vd(l, n);
7135
+ const n = t, l = e, r = It(), s = it(r, "timePicker"), o = U(null), { time: v, modelValue: w, disabledTimesConfig: _, updateTime: u, validateTime: g } = vd(l, n);
7135
7136
  return Ue(() => {
7136
7137
  l.shadow || n("mount", null);
7137
7138
  }), a({ getSidebarProps: () => ({
7138
- modelValue: b,
7139
+ modelValue: w,
7139
7140
  time: v,
7140
7141
  updateTime: u
7141
- }), toggleTimePicker: (f, D = !1, _ = "") => {
7142
+ }), toggleTimePicker: (p, D = !1, k = "") => {
7142
7143
  var W;
7143
- (W = o.value) == null || W.toggleTimePicker(f, D, _);
7144
- } }), (f, D) => (p(), be(Fa, {
7144
+ (W = o.value) == null || W.toggleTimePicker(p, D, k);
7145
+ } }), (p, D) => (f(), be(Fa, {
7145
7146
  "multi-calendars": 0,
7146
7147
  stretch: ""
7147
7148
  }, {
@@ -7149,25 +7150,25 @@ const Au = ({
7149
7150
  Ee(Gl, Fe({
7150
7151
  ref_key: "tpRef",
7151
7152
  ref: o
7152
- }, f.$props, {
7153
+ }, p.$props, {
7153
7154
  hours: c(v).hours,
7154
7155
  minutes: c(v).minutes,
7155
7156
  seconds: c(v).seconds,
7156
- "internal-model-value": f.internalModelValue,
7157
- "disabled-times-config": c(w),
7158
- "validate-time": c(k),
7159
- "onUpdate:hours": D[0] || (D[0] = (_) => c(u)(_)),
7160
- "onUpdate:minutes": D[1] || (D[1] = (_) => c(u)(_, !1)),
7161
- "onUpdate:seconds": D[2] || (D[2] = (_) => c(u)(_, !1, !0)),
7162
- onAmPmChange: D[3] || (D[3] = (_) => f.$emit("am-pm-change", _)),
7163
- onResetFlow: D[4] || (D[4] = (_) => f.$emit("reset-flow")),
7164
- onOverlayClosed: D[5] || (D[5] = (_) => f.$emit("overlay-toggle", { open: !1, overlay: _ })),
7165
- onOverlayOpened: D[6] || (D[6] = (_) => f.$emit("overlay-toggle", { open: !0, overlay: _ }))
7157
+ "internal-model-value": p.internalModelValue,
7158
+ "disabled-times-config": c(_),
7159
+ "validate-time": c(g),
7160
+ "onUpdate:hours": D[0] || (D[0] = (k) => c(u)(k)),
7161
+ "onUpdate:minutes": D[1] || (D[1] = (k) => c(u)(k, !1)),
7162
+ "onUpdate:seconds": D[2] || (D[2] = (k) => c(u)(k, !1, !0)),
7163
+ onAmPmChange: D[3] || (D[3] = (k) => p.$emit("am-pm-change", k)),
7164
+ onResetFlow: D[4] || (D[4] = (k) => p.$emit("reset-flow")),
7165
+ onOverlayClosed: D[5] || (D[5] = (k) => p.$emit("overlay-toggle", { open: !1, overlay: k })),
7166
+ onOverlayOpened: D[6] || (D[6] = (k) => p.$emit("overlay-toggle", { open: !0, overlay: k }))
7166
7167
  }), at({ _: 2 }, [
7167
- Se(c(s), (_, W) => ({
7168
- name: _,
7168
+ Se(c(s), (k, W) => ({
7169
+ name: k,
7169
7170
  fn: fe((G) => [
7170
- ne(f.$slots, _, Qe(rt(G)))
7171
+ ne(p.$slots, k, Qe(rt(G)))
7171
7172
  ])
7172
7173
  }))
7173
7174
  ]), 1040, ["hours", "minutes", "seconds", "internal-model-value", "disabled-times-config", "validate-time"])
@@ -7198,10 +7199,10 @@ const Au = ({
7198
7199
  defaultedAriaLabels: s,
7199
7200
  defaultedMultiCalendars: o,
7200
7201
  defaultedFilters: v,
7201
- defaultedConfig: b,
7202
- defaultedHighlight: w,
7202
+ defaultedConfig: w,
7203
+ defaultedHighlight: _,
7203
7204
  propDates: u
7204
- } = Ie(l), { transitionName: k, showTransition: f } = Ma(r), { buildMatrix: D } = Nt(), { handleMonthYearChange: _, isDisabled: W, updateMonthYear: G } = Cu(l, n), { showLeftIcon: P, showRightIcon: R } = Ia(), C = U(!1), x = U(!1), S = U([null, null, null, null]);
7205
+ } = Ie(l), { transitionName: g, showTransition: p } = Ma(r), { buildMatrix: D } = Nt(), { handleMonthYearChange: k, isDisabled: W, updateMonthYear: G } = Cu(l, n), { showLeftIcon: P, showRightIcon: O } = Ia(), C = U(!1), x = U(!1), S = U([null, null, null, null]);
7205
7206
  Ue(() => {
7206
7207
  n("mount");
7207
7208
  });
@@ -7209,7 +7210,7 @@ const Au = ({
7209
7210
  get: () => l[Y],
7210
7211
  set: (B) => {
7211
7212
  const i = Y === pt.month ? pt.year : pt.month;
7212
- n("update-month-year", { [Y]: B, [i]: l[i] }), Y === pt.month ? m(!0) : g(!0);
7213
+ n("update-month-year", { [Y]: B, [i]: l[i] }), Y === pt.month ? m(!0) : b(!0);
7213
7214
  }
7214
7215
  }), N = H(h(pt.month)), ee = H(h(pt.year)), se = H(() => (Y) => ({
7215
7216
  month: l.month,
@@ -7217,26 +7218,26 @@ const Au = ({
7217
7218
  items: Y === pt.month ? l.months : l.years,
7218
7219
  instance: l.instance,
7219
7220
  updateMonthYear: G,
7220
- toggle: Y === pt.month ? m : g
7221
+ toggle: Y === pt.month ? m : b
7221
7222
  })), pe = H(() => l.months.find((B) => B.value === l.month) || { text: "", value: 0 }), L = H(() => ra(l.months, (Y) => {
7222
7223
  const B = l.month === Y.value, i = wa(
7223
7224
  Y.value,
7224
7225
  Bl(l.year, u.value.minDate),
7225
7226
  Ll(l.year, u.value.maxDate)
7226
- ) || v.value.months.includes(Y.value), E = Hl(w.value, Y.value, l.year);
7227
+ ) || v.value.months.includes(Y.value), E = Hl(_.value, Y.value, l.year);
7227
7228
  return { active: B, disabled: i, highlighted: E };
7228
7229
  })), V = H(() => ra(l.years, (Y) => {
7229
7230
  const B = l.year === Y.value, i = wa(
7230
7231
  Y.value,
7231
7232
  oa(u.value.minDate),
7232
7233
  oa(u.value.maxDate)
7233
- ) || v.value.years.includes(Y.value), E = Sn(w.value, Y.value);
7234
+ ) || v.value.years.includes(Y.value), E = Sn(_.value, Y.value);
7234
7235
  return { active: B, disabled: i, highlighted: E };
7235
7236
  })), oe = (Y, B, i) => {
7236
7237
  i !== void 0 ? Y.value = i : Y.value = !Y.value, Y.value ? n("overlay-opened", B) : n("overlay-closed", B);
7237
7238
  }, m = (Y = !1, B) => {
7238
7239
  $(Y), oe(C, et.month, B);
7239
- }, g = (Y = !1, B) => {
7240
+ }, b = (Y = !1, B) => {
7240
7241
  $(Y), oe(x, et.year, B);
7241
7242
  }, $ = (Y) => {
7242
7243
  Y || n("reset-flow");
@@ -7259,7 +7260,7 @@ const Au = ({
7259
7260
  {
7260
7261
  type: pt.year,
7261
7262
  index: 2,
7262
- toggle: g,
7263
+ toggle: b,
7263
7264
  modelValue: ee.value,
7264
7265
  updateModelValue: (i) => ee.value = i,
7265
7266
  text: Yl(l.year, l.locale),
@@ -7271,28 +7272,28 @@ const Au = ({
7271
7272
  }), me = H(() => l.disableYearSelect ? [re.value[0]] : l.yearFirst ? [...re.value].reverse() : re.value);
7272
7273
  return a({
7273
7274
  toggleMonthPicker: m,
7274
- toggleYearPicker: g,
7275
- handleMonthYearChange: _
7275
+ toggleYearPicker: b,
7276
+ handleMonthYearChange: k
7276
7277
  }), (Y, B) => {
7277
7278
  var i, E, le;
7278
- return p(), A("div", fd, [
7279
- Y.$slots["month-year"] ? (p(), A("div", hd, [
7280
- ne(Y.$slots, "month-year", Qe(rt({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: c(G), handleMonthYearChange: c(_), instance: e.instance })))
7281
- ])) : (p(), A(_e, { key: 1 }, [
7282
- Y.$slots["top-extra"] ? (p(), A("div", yd, [
7279
+ return f(), A("div", fd, [
7280
+ Y.$slots["month-year"] ? (f(), A("div", hd, [
7281
+ ne(Y.$slots, "month-year", Qe(rt({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: c(G), handleMonthYearChange: c(k), instance: e.instance })))
7282
+ ])) : (f(), A(_e, { key: 1 }, [
7283
+ Y.$slots["top-extra"] ? (f(), A("div", yd, [
7283
7284
  ne(Y.$slots, "top-extra", { value: Y.internalModelValue })
7284
7285
  ])) : I("", !0),
7285
7286
  z("div", gd, [
7286
- c(P)(c(o), e.instance) && !Y.vertical ? (p(), be(ya, {
7287
+ c(P)(c(o), e.instance) && !Y.vertical ? (f(), be(ya, {
7287
7288
  key: 0,
7288
7289
  "aria-label": (i = c(s)) == null ? void 0 : i.prevMonth,
7289
7290
  disabled: c(W)(!1),
7290
- onActivate: B[0] || (B[0] = (te) => c(_)(!1, !0)),
7291
+ onActivate: B[0] || (B[0] = (te) => c(k)(!1, !0)),
7291
7292
  onSetRef: B[1] || (B[1] = (te) => Q(te, 0))
7292
7293
  }, {
7293
7294
  default: fe(() => [
7294
7295
  Y.$slots["arrow-left"] ? ne(Y.$slots, "arrow-left", { key: 0 }) : I("", !0),
7295
- Y.$slots["arrow-left"] ? I("", !0) : (p(), be(c(Tn), { key: 1 }))
7296
+ Y.$slots["arrow-left"] ? I("", !0) : (f(), be(c(Tn), { key: 1 }))
7296
7297
  ]),
7297
7298
  _: 3
7298
7299
  }, 8, ["aria-label", "disabled"])) : I("", !0),
@@ -7301,7 +7302,7 @@ const Au = ({
7301
7302
  dp__year_disable_select: Y.disableYearSelect
7302
7303
  }])
7303
7304
  }, [
7304
- (p(!0), A(_e, null, Se(me.value, (te, y) => (p(), A(_e, {
7305
+ (f(!0), A(_e, null, Se(me.value, (te, y) => (f(), A(_e, {
7305
7306
  key: te.type
7306
7307
  }, [
7307
7308
  z("button", {
@@ -7320,21 +7321,21 @@ const Au = ({
7320
7321
  text: te.text,
7321
7322
  value: l[te.type]
7322
7323
  }) : I("", !0),
7323
- Y.$slots[te.type] ? I("", !0) : (p(), A(_e, { key: 1 }, [
7324
+ Y.$slots[te.type] ? I("", !0) : (f(), A(_e, { key: 1 }, [
7324
7325
  ut(ke(te.text), 1)
7325
7326
  ], 64))
7326
7327
  ], 40, bd),
7327
7328
  Ee(lt, {
7328
- name: c(k)(te.showSelectionGrid),
7329
- css: c(f)
7329
+ name: c(g)(te.showSelectionGrid),
7330
+ css: c(p)
7330
7331
  }, {
7331
7332
  default: fe(() => [
7332
- te.showSelectionGrid ? (p(), be(Ta, {
7333
+ te.showSelectionGrid ? (f(), be(Ta, {
7333
7334
  key: 0,
7334
7335
  items: te.items,
7335
7336
  "arrow-navigation": Y.arrowNavigation,
7336
7337
  "hide-navigation": Y.hideNavigation,
7337
- "is-last": Y.autoApply && !c(b).keepActionRow,
7338
+ "is-last": Y.autoApply && !c(w).keepActionRow,
7338
7339
  "skip-button-ref": !1,
7339
7340
  config: Y.config,
7340
7341
  type: te.type,
@@ -7348,7 +7349,7 @@ const Au = ({
7348
7349
  }, at({
7349
7350
  "button-icon": fe(() => [
7350
7351
  Y.$slots["calendar-icon"] ? ne(Y.$slots, "calendar-icon", { key: 0 }) : I("", !0),
7351
- Y.$slots["calendar-icon"] ? I("", !0) : (p(), be(c(sa), { key: 1 }))
7352
+ Y.$slots["calendar-icon"] ? I("", !0) : (f(), be(c(sa), { key: 1 }))
7352
7353
  ]),
7353
7354
  _: 2
7354
7355
  }, [
@@ -7384,29 +7385,29 @@ const Au = ({
7384
7385
  }, 1032, ["name", "css"])
7385
7386
  ], 64))), 128))
7386
7387
  ], 2),
7387
- c(P)(c(o), e.instance) && Y.vertical ? (p(), be(ya, {
7388
+ c(P)(c(o), e.instance) && Y.vertical ? (f(), be(ya, {
7388
7389
  key: 1,
7389
7390
  "aria-label": (E = c(s)) == null ? void 0 : E.prevMonth,
7390
7391
  disabled: c(W)(!1),
7391
- onActivate: B[2] || (B[2] = (te) => c(_)(!1, !0))
7392
+ onActivate: B[2] || (B[2] = (te) => c(k)(!1, !0))
7392
7393
  }, {
7393
7394
  default: fe(() => [
7394
7395
  Y.$slots["arrow-up"] ? ne(Y.$slots, "arrow-up", { key: 0 }) : I("", !0),
7395
- Y.$slots["arrow-up"] ? I("", !0) : (p(), be(c($n), { key: 1 }))
7396
+ Y.$slots["arrow-up"] ? I("", !0) : (f(), be(c($n), { key: 1 }))
7396
7397
  ]),
7397
7398
  _: 3
7398
7399
  }, 8, ["aria-label", "disabled"])) : I("", !0),
7399
- c(R)(c(o), e.instance) ? (p(), be(ya, {
7400
+ c(O)(c(o), e.instance) ? (f(), be(ya, {
7400
7401
  key: 2,
7401
7402
  ref: "rightIcon",
7402
7403
  disabled: c(W)(!0),
7403
7404
  "aria-label": (le = c(s)) == null ? void 0 : le.nextMonth,
7404
- onActivate: B[3] || (B[3] = (te) => c(_)(!0, !0)),
7405
+ onActivate: B[3] || (B[3] = (te) => c(k)(!0, !0)),
7405
7406
  onSetRef: B[4] || (B[4] = (te) => Q(te, Y.disableYearSelect ? 2 : 3))
7406
7407
  }, {
7407
7408
  default: fe(() => [
7408
7409
  Y.$slots[Y.vertical ? "arrow-down" : "arrow-right"] ? ne(Y.$slots, Y.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : I("", !0),
7409
- Y.$slots[Y.vertical ? "arrow-down" : "arrow-right"] ? I("", !0) : (p(), be(Ba(Y.vertical ? c(Cn) : c(Pn)), { key: 1 }))
7410
+ Y.$slots[Y.vertical ? "arrow-down" : "arrow-right"] ? I("", !0) : (f(), be(Ba(Y.vertical ? c(Cn) : c(Pn)), { key: 1 }))
7410
7411
  ]),
7411
7412
  _: 3
7412
7413
  }, 8, ["disabled", "aria-label"])) : I("", !0)
@@ -7453,16 +7454,16 @@ const Au = ({
7453
7454
  defaultedTransitions: s,
7454
7455
  defaultedConfig: o,
7455
7456
  defaultedAriaLabels: v,
7456
- defaultedMultiCalendars: b,
7457
- defaultedWeekNumbers: w,
7457
+ defaultedMultiCalendars: w,
7458
+ defaultedWeekNumbers: _,
7458
7459
  defaultedMultiDates: u
7459
- } = Ie(l), k = U(null), f = U({
7460
+ } = Ie(l), g = U(null), p = U({
7460
7461
  bottom: "",
7461
7462
  left: "",
7462
7463
  transform: ""
7463
- }), D = U([]), _ = U(null), W = U(!0), G = U(""), P = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), R = U([]), C = U({ left: "50%" }), x = U(!1), S = H(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), h = H(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : Ji(l.formatLocale, l.locale, +l.weekStart));
7464
+ }), D = U([]), k = U(null), W = U(!0), G = U(""), P = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), O = U([]), C = U({ left: "50%" }), x = U(!1), S = H(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), h = H(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : Ji(l.formatLocale, l.locale, +l.weekStart));
7464
7465
  Ue(() => {
7465
- n("mount", { cmp: "calendar", refs: D }), o.value.noSwipe || _.value && (_.value.addEventListener("touchstart", re, { passive: !1 }), _.value.addEventListener("touchend", me, { passive: !1 }), _.value.addEventListener("touchmove", Y, { passive: !1 })), l.monthChangeOnScroll && _.value && _.value.addEventListener("wheel", E, { passive: !1 });
7466
+ n("mount", { cmp: "calendar", refs: D }), o.value.noSwipe || k.value && (k.value.addEventListener("touchstart", re, { passive: !1 }), k.value.addEventListener("touchend", me, { passive: !1 }), k.value.addEventListener("touchmove", Y, { passive: !1 })), l.monthChangeOnScroll && k.value && k.value.addEventListener("wheel", E, { passive: !1 });
7466
7467
  });
7467
7468
  const N = (K) => K ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", ee = (K, Z) => {
7468
7469
  if (l.transitions) {
@@ -7481,20 +7482,20 @@ const Au = ({
7481
7482
  dp__marker_dot: Z.type === "dot",
7482
7483
  dp__marker_line: Z.type === "line"
7483
7484
  };
7484
- }), L = H(() => (K) => De(K, k.value)), V = H(() => ({
7485
+ }), L = H(() => (K) => De(K, g.value)), V = H(() => ({
7485
7486
  dp__calendar: !0,
7486
- dp__calendar_next: b.value.count > 0 && l.instance !== 0
7487
- })), oe = H(() => (K) => l.hideOffsetDates ? K.current : !0), m = (K) => Tt(K, "yyyy-MM-dd"), g = async (K, Z, d) => {
7487
+ dp__calendar_next: w.value.count > 0 && l.instance !== 0
7488
+ })), oe = H(() => (K) => l.hideOffsetDates ? K.current : !0), m = (K) => Tt(K, "yyyy-MM-dd"), b = async (K, Z, d) => {
7488
7489
  const j = qe(D.value[Z][d]);
7489
7490
  if (j) {
7490
7491
  const { width: ce, height: F } = j.getBoundingClientRect();
7491
- k.value = K.value;
7492
+ g.value = K.value;
7492
7493
  let M = { left: `${ce / 2}px` }, X = -50;
7493
- if (await mt(), R.value[0]) {
7494
- const { left: he, width: Re } = R.value[0].getBoundingClientRect();
7494
+ if (await mt(), O.value[0]) {
7495
+ const { left: he, width: Re } = O.value[0].getBoundingClientRect();
7495
7496
  he < 0 && (M = { left: "0" }, X = 0, C.value.left = `${ce / 2}px`), window.innerWidth < he + Re && (M = { right: "0" }, X = 0, C.value.left = `${Re - ce / 2}px`);
7496
7497
  }
7497
- f.value = {
7498
+ p.value = {
7498
7499
  bottom: `${F}px`,
7499
7500
  ...M,
7500
7501
  transform: `translateX(${X}%)`
@@ -7504,9 +7505,9 @@ const Au = ({
7504
7505
  var j, ce;
7505
7506
  if (x.value && u.value.enabled && u.value.dragSelect)
7506
7507
  return n("select-date", K);
7507
- n("set-hover-date", K), (ce = (j = K.marker) == null ? void 0 : j.tooltip) != null && ce.length && await g(K, Z, d);
7508
+ n("set-hover-date", K), (ce = (j = K.marker) == null ? void 0 : j.tooltip) != null && ce.length && await b(K, Z, d);
7508
7509
  }, Q = (K) => {
7509
- k.value && (k.value = null, f.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", K.marker));
7510
+ g.value && (g.value = null, p.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", K.marker));
7510
7511
  }, re = (K) => {
7511
7512
  P.value.startX = K.changedTouches[0].screenX, P.value.startY = K.changedTouches[0].screenY;
7512
7513
  }, me = (K) => {
@@ -7520,9 +7521,9 @@ const Au = ({
7520
7521
  K && (Array.isArray(D.value[Z]) ? D.value[Z][d] = K : D.value[Z] = [K]), l.arrowNavigation && r(D.value, "calendar");
7521
7522
  }, E = (K) => {
7522
7523
  l.monthChangeOnScroll && (K.preventDefault(), n("handle-scroll", K));
7523
- }, le = (K) => w.value.type === "local" ? wn(K.value, { weekStartsOn: +l.weekStart }) : w.value.type === "iso" ? gn(K.value) : typeof w.value.type == "function" ? w.value.type(K.value) : "", te = (K) => {
7524
+ }, le = (K) => _.value.type === "local" ? wn(K.value, { weekStartsOn: +l.weekStart }) : _.value.type === "iso" ? gn(K.value) : typeof _.value.type == "function" ? _.value.type(K.value) : "", te = (K) => {
7524
7525
  const Z = K[0];
7525
- return w.value.hideOnOffsetDates ? K.some((d) => d.current) ? le(Z) : "" : le(Z);
7526
+ return _.value.hideOnOffsetDates ? K.some((d) => d.current) ? le(Z) : "" : le(Z);
7526
7527
  }, y = (K, Z) => {
7527
7528
  u.value.enabled || (Yt(K, o.value), n("select-date", Z));
7528
7529
  }, ue = (K) => {
@@ -7532,21 +7533,21 @@ const Au = ({
7532
7533
  };
7533
7534
  return a({ triggerTransition: ee }), (K, Z) => {
7534
7535
  var d;
7535
- return p(), A("div", {
7536
+ return f(), A("div", {
7536
7537
  class: ye(V.value)
7537
7538
  }, [
7538
7539
  z("div", {
7539
7540
  ref_key: "calendarWrapRef",
7540
- ref: _,
7541
+ ref: k,
7541
7542
  role: "grid",
7542
7543
  class: ye(se.value),
7543
7544
  "aria-label": (d = c(v)) == null ? void 0 : d.calendarWrap
7544
7545
  }, [
7545
7546
  z("div", kd, [
7546
- K.weekNumbers ? (p(), A("div", Md, ke(K.weekNumName), 1)) : I("", !0),
7547
- (p(!0), A(_e, null, Se(h.value, (j, ce) => {
7547
+ K.weekNumbers ? (f(), A("div", Md, ke(K.weekNumName), 1)) : I("", !0),
7548
+ (f(!0), A(_e, null, Se(h.value, (j, ce) => {
7548
7549
  var F, M;
7549
- return p(), A("div", {
7550
+ return f(), A("div", {
7550
7551
  key: ce,
7551
7552
  class: "dp__calendar_header_item",
7552
7553
  role: "gridcell",
@@ -7558,7 +7559,7 @@ const Au = ({
7558
7559
  day: j,
7559
7560
  index: ce
7560
7561
  }) : I("", !0),
7561
- K.$slots["calendar-header"] ? I("", !0) : (p(), A(_e, { key: 1 }, [
7562
+ K.$slots["calendar-header"] ? I("", !0) : (f(), A(_e, { key: 1 }, [
7562
7563
  ut(ke(j), 1)
7563
7564
  ], 64))
7564
7565
  ], 8, Dd);
@@ -7572,24 +7573,24 @@ const Au = ({
7572
7573
  default: fe(() => {
7573
7574
  var j;
7574
7575
  return [
7575
- W.value ? (p(), A("div", {
7576
+ W.value ? (f(), A("div", {
7576
7577
  key: 0,
7577
7578
  class: "dp__calendar",
7578
7579
  role: "rowgroup",
7579
7580
  "aria-label": ((j = c(v)) == null ? void 0 : j.calendarDays) || void 0,
7580
7581
  onMouseleave: Z[1] || (Z[1] = (ce) => x.value = !1)
7581
7582
  }, [
7582
- (p(!0), A(_e, null, Se(S.value, (ce, F) => (p(), A("div", {
7583
+ (f(!0), A(_e, null, Se(S.value, (ce, F) => (f(), A("div", {
7583
7584
  key: F,
7584
7585
  class: "dp__calendar_row",
7585
7586
  role: "row"
7586
7587
  }, [
7587
- K.weekNumbers ? (p(), A("div", xd, [
7588
+ K.weekNumbers ? (f(), A("div", xd, [
7588
7589
  z("div", $d, ke(te(ce.days)), 1)
7589
7590
  ])) : I("", !0),
7590
- (p(!0), A(_e, null, Se(ce.days, (M, X) => {
7591
+ (f(!0), A(_e, null, Se(ce.days, (M, X) => {
7591
7592
  var he, Re, Pe;
7592
- return p(), A("div", {
7593
+ return f(), A("div", {
7593
7594
  id: m(M.value),
7594
7595
  ref_for: !0,
7595
7596
  ref: (ie) => i(ie, F, X),
@@ -7616,35 +7617,35 @@ const Au = ({
7616
7617
  day: +M.text,
7617
7618
  date: M.value
7618
7619
  }) : I("", !0),
7619
- K.$slots.day ? I("", !0) : (p(), A(_e, { key: 1 }, [
7620
+ K.$slots.day ? I("", !0) : (f(), A(_e, { key: 1 }, [
7620
7621
  ut(ke(M.text), 1)
7621
7622
  ], 64)),
7622
- M.marker && oe.value(M) ? (p(), A(_e, { key: 2 }, [
7623
+ M.marker && oe.value(M) ? (f(), A(_e, { key: 2 }, [
7623
7624
  K.$slots.marker ? ne(K.$slots, "marker", {
7624
7625
  key: 0,
7625
7626
  marker: M.marker,
7626
7627
  day: +M.text,
7627
7628
  date: M.value
7628
- }) : (p(), A("div", {
7629
+ }) : (f(), A("div", {
7629
7630
  key: 1,
7630
7631
  class: ye(pe.value(M.marker)),
7631
7632
  style: tt(M.marker.color ? { backgroundColor: M.marker.color } : {})
7632
7633
  }, null, 6))
7633
7634
  ], 64)) : I("", !0),
7634
- L.value(M.value) ? (p(), A("div", {
7635
+ L.value(M.value) ? (f(), A("div", {
7635
7636
  key: 3,
7636
7637
  ref_for: !0,
7637
7638
  ref_key: "activeTooltip",
7638
- ref: R,
7639
+ ref: O,
7639
7640
  class: "dp__marker_tooltip",
7640
- style: tt(f.value)
7641
+ style: tt(p.value)
7641
7642
  }, [
7642
- (Pe = M.marker) != null && Pe.tooltip ? (p(), A("div", {
7643
+ (Pe = M.marker) != null && Pe.tooltip ? (f(), A("div", {
7643
7644
  key: 0,
7644
7645
  class: "dp__tooltip_content",
7645
7646
  onClick: ue
7646
7647
  }, [
7647
- (p(!0), A(_e, null, Se(M.marker.tooltip, (ie, wt) => (p(), A("div", {
7648
+ (f(!0), A(_e, null, Se(M.marker.tooltip, (ie, wt) => (f(), A("div", {
7648
7649
  key: wt,
7649
7650
  class: "dp__tooltip_text"
7650
7651
  }, [
@@ -7653,7 +7654,7 @@ const Au = ({
7653
7654
  tooltip: ie,
7654
7655
  day: M.value
7655
7656
  }) : I("", !0),
7656
- K.$slots["marker-tooltip"] ? I("", !0) : (p(), A(_e, { key: 1 }, [
7657
+ K.$slots["marker-tooltip"] ? I("", !0) : (f(), A(_e, { key: 1 }, [
7657
7658
  z("div", {
7658
7659
  class: "dp__tooltip_mark",
7659
7660
  style: tt(ie.color ? { backgroundColor: ie.color } : {})
@@ -7681,139 +7682,139 @@ const Au = ({
7681
7682
  };
7682
7683
  }
7683
7684
  }), nl = (e) => Array.isArray(e), Rd = (e, a, t, n) => {
7684
- const l = U([]), r = U(/* @__PURE__ */ new Date()), s = U(), { modelValue: o, calendars: v, time: b, today: w } = Da(e, a), {
7685
+ const l = U([]), r = U(/* @__PURE__ */ new Date()), s = U(), { modelValue: o, calendars: v, time: w, today: _ } = Da(e, a), {
7685
7686
  defaultedMultiCalendars: u,
7686
- defaultedStartTime: k,
7687
- defaultedRange: f,
7687
+ defaultedStartTime: g,
7688
+ defaultedRange: p,
7688
7689
  defaultedConfig: D,
7689
- defaultedTz: _,
7690
+ defaultedTz: k,
7690
7691
  propDates: W,
7691
7692
  defaultedMultiDates: G
7692
- } = Ie(e), { validateMonthYearInRange: P, isDisabled: R, isDateRangeAllowed: C, checkMinMaxRange: x } = Ft(e), { updateTimeValues: S, getSetDateTime: h, setTime: N, assignStartTime: ee, validateTime: se, disabledTimesConfig: pe } = Ql(e, b, o, n), L = H(
7693
- () => (O) => v.value[O] ? v.value[O].month : 0
7693
+ } = Ie(e), { validateMonthYearInRange: P, isDisabled: O, isDateRangeAllowed: C, checkMinMaxRange: x } = Ft(e), { updateTimeValues: S, getSetDateTime: h, setTime: N, assignStartTime: ee, validateTime: se, disabledTimesConfig: pe } = Ql(e, w, o, n), L = H(
7694
+ () => (R) => v.value[R] ? v.value[R].month : 0
7694
7695
  ), V = H(
7695
- () => (O) => v.value[O] ? v.value[O].year : 0
7696
- ), oe = (O) => !D.value.keepViewOnOffsetClick || O ? !0 : !s.value, m = (O, T, J, ae = !1) => {
7696
+ () => (R) => v.value[R] ? v.value[R].year : 0
7697
+ ), oe = (R) => !D.value.keepViewOnOffsetClick || R ? !0 : !s.value, m = (R, T, J, ae = !1) => {
7697
7698
  var Ce, Je;
7698
- oe(ae) && (v.value[O] || (v.value[O] = { month: 0, year: 0 }), v.value[O].month = Zn(T) ? (Ce = v.value[O]) == null ? void 0 : Ce.month : T, v.value[O].year = Zn(J) ? (Je = v.value[O]) == null ? void 0 : Je.year : J);
7699
- }, g = () => {
7699
+ oe(ae) && (v.value[R] || (v.value[R] = { month: 0, year: 0 }), v.value[R].month = Zn(T) ? (Ce = v.value[R]) == null ? void 0 : Ce.month : T, v.value[R].year = Zn(J) ? (Je = v.value[R]) == null ? void 0 : Je.year : J);
7700
+ }, b = () => {
7700
7701
  e.autoApply && a("select-date");
7701
7702
  };
7702
7703
  dt(
7703
7704
  o,
7704
- (O, T) => {
7705
- JSON.stringify(O) !== JSON.stringify(T) && re();
7705
+ (R, T) => {
7706
+ JSON.stringify(R) !== JSON.stringify(T) && re();
7706
7707
  },
7707
7708
  { deep: !0 }
7708
7709
  ), Ue(() => {
7709
- e.shadow || (o.value || (K(), k.value && ee(k.value)), re(!0), e.focusStartDate && e.startDate && K());
7710
+ e.shadow || (o.value || (K(), g.value && ee(g.value)), re(!0), e.focusStartDate && e.startDate && K());
7710
7711
  });
7711
7712
  const $ = H(() => {
7712
- var O;
7713
- return (O = e.flow) != null && O.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
7713
+ var R;
7714
+ return (R = e.flow) != null && R.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
7714
7715
  }), Q = () => {
7715
7716
  e.autoApply && $.value && a("auto-apply");
7716
- }, re = (O = !1) => {
7717
+ }, re = (R = !1) => {
7717
7718
  if (o.value)
7718
- return Array.isArray(o.value) ? (l.value = o.value, te(O)) : B(o.value, O);
7719
- if (u.value.count && O && !e.startDate)
7720
- return Y(q(), O);
7721
- }, me = () => Array.isArray(o.value) && f.value.enabled ? Me(o.value[0]) === Me(o.value[1] ?? o.value[0]) : !1, Y = (O, T = !1) => {
7722
- if ((!u.value.count || !u.value.static || T) && m(0, Me(O), we(O)), u.value.count && (!u.value.solo || !o.value || me()))
7719
+ return Array.isArray(o.value) ? (l.value = o.value, te(R)) : B(o.value, R);
7720
+ if (u.value.count && R && !e.startDate)
7721
+ return Y(q(), R);
7722
+ }, me = () => Array.isArray(o.value) && p.value.enabled ? Me(o.value[0]) === Me(o.value[1] ?? o.value[0]) : !1, Y = (R, T = !1) => {
7723
+ if ((!u.value.count || !u.value.static || T) && m(0, Me(R), we(R)), u.value.count && (!u.value.solo || !o.value || me()))
7723
7724
  for (let J = 1; J < u.value.count; J++) {
7724
7725
  const ae = Oe(q(), { month: L.value(J - 1), year: V.value(J - 1) }), Ce = ul(ae, { months: 1 });
7725
7726
  v.value[J] = { month: Me(Ce), year: we(Ce) };
7726
7727
  }
7727
- }, B = (O, T) => {
7728
- Y(O), N("hours", Ct(O)), N("minutes", Lt(O)), N("seconds", aa(O)), u.value.count && T && ge();
7729
- }, i = (O) => {
7728
+ }, B = (R, T) => {
7729
+ Y(R), N("hours", Ct(R)), N("minutes", Lt(R)), N("seconds", aa(R)), u.value.count && T && ge();
7730
+ }, i = (R) => {
7730
7731
  if (u.value.count) {
7731
7732
  if (u.value.solo)
7732
7733
  return 0;
7733
- const T = Me(O[0]), J = Me(O[1]);
7734
+ const T = Me(R[0]), J = Me(R[1]);
7734
7735
  return Math.abs(J - T) < u.value.count ? 0 : 1;
7735
7736
  }
7736
7737
  return 1;
7737
- }, E = (O, T) => {
7738
- O[1] && f.value.showLastInRange ? Y(O[i(O)], T) : Y(O[0], T);
7738
+ }, E = (R, T) => {
7739
+ R[1] && p.value.showLastInRange ? Y(R[i(R)], T) : Y(R[0], T);
7739
7740
  const J = (ae, Ce) => [
7740
- ae(O[0]),
7741
- O[1] ? ae(O[1]) : b[Ce][1]
7741
+ ae(R[0]),
7742
+ R[1] ? ae(R[1]) : w[Ce][1]
7742
7743
  ];
7743
7744
  N("hours", J(Ct, "hours")), N("minutes", J(Lt, "minutes")), N("seconds", J(aa, "seconds"));
7744
- }, le = (O, T) => {
7745
- if ((f.value.enabled || e.weekPicker) && !G.value.enabled)
7746
- return E(O, T);
7745
+ }, le = (R, T) => {
7746
+ if ((p.value.enabled || e.weekPicker) && !G.value.enabled)
7747
+ return E(R, T);
7747
7748
  if (G.value.enabled && T) {
7748
- const J = O[O.length - 1];
7749
+ const J = R[R.length - 1];
7749
7750
  return B(J, T);
7750
7751
  }
7751
- }, te = (O) => {
7752
+ }, te = (R) => {
7752
7753
  const T = o.value;
7753
- le(T, O), u.value.count && u.value.solo && ge();
7754
- }, y = (O, T) => {
7755
- const J = Oe(q(), { month: L.value(T), year: V.value(T) }), ae = O < 0 ? yt(J, 1) : la(J, 1);
7756
- P(Me(ae), we(ae), O < 0, e.preventMinMaxNavigation) && (m(T, Me(ae), we(ae)), a("update-month-year", { instance: T, month: Me(ae), year: we(ae) }), u.value.count && !u.value.solo && ue(T), t());
7757
- }, ue = (O) => {
7758
- for (let T = O - 1; T >= 0; T--) {
7754
+ le(T, R), u.value.count && u.value.solo && ge();
7755
+ }, y = (R, T) => {
7756
+ const J = Oe(q(), { month: L.value(T), year: V.value(T) }), ae = R < 0 ? yt(J, 1) : la(J, 1);
7757
+ P(Me(ae), we(ae), R < 0, e.preventMinMaxNavigation) && (m(T, Me(ae), we(ae)), a("update-month-year", { instance: T, month: Me(ae), year: we(ae) }), u.value.count && !u.value.solo && ue(T), t());
7758
+ }, ue = (R) => {
7759
+ for (let T = R - 1; T >= 0; T--) {
7759
7760
  const J = la(Oe(q(), { month: L.value(T + 1), year: V.value(T + 1) }), 1);
7760
7761
  m(T, Me(J), we(J));
7761
7762
  }
7762
- for (let T = O + 1; T <= u.value.count - 1; T++) {
7763
+ for (let T = R + 1; T <= u.value.count - 1; T++) {
7763
7764
  const J = yt(Oe(q(), { month: L.value(T - 1), year: V.value(T - 1) }), 1);
7764
7765
  m(T, Me(J), we(J));
7765
7766
  }
7766
7767
  }, ge = () => {
7767
7768
  if (Array.isArray(o.value) && o.value.length === 2) {
7768
- const O = q(
7769
+ const R = q(
7769
7770
  q(o.value[1] ? o.value[1] : yt(o.value[0], 1))
7770
7771
  ), [T, J] = [Me(o.value[0]), we(o.value[0])], [ae, Ce] = [Me(o.value[1]), we(o.value[1])];
7771
- (T !== ae || T === ae && J !== Ce) && u.value.solo && m(1, Me(O), we(O));
7772
+ (T !== ae || T === ae && J !== Ce) && u.value.solo && m(1, Me(R), we(R));
7772
7773
  } else
7773
7774
  o.value && !Array.isArray(o.value) && (m(0, Me(o.value), we(o.value)), Y(q()));
7774
7775
  }, K = () => {
7775
7776
  e.startDate && (m(0, Me(q(e.startDate)), we(q(e.startDate))), u.value.count && ue(0));
7776
- }, Z = (O, T) => {
7777
+ }, Z = (R, T) => {
7777
7778
  if (e.monthChangeOnScroll) {
7778
- const J = (/* @__PURE__ */ new Date()).getTime() - r.value.getTime(), ae = Math.abs(O.deltaY);
7779
+ const J = (/* @__PURE__ */ new Date()).getTime() - r.value.getTime(), ae = Math.abs(R.deltaY);
7779
7780
  let Ce = 500;
7780
- ae > 1 && (Ce = 100), ae > 100 && (Ce = 0), J > Ce && (r.value = /* @__PURE__ */ new Date(), y(e.monthChangeOnScroll !== "inverse" ? -O.deltaY : O.deltaY, T));
7781
+ ae > 1 && (Ce = 100), ae > 100 && (Ce = 0), J > Ce && (r.value = /* @__PURE__ */ new Date(), y(e.monthChangeOnScroll !== "inverse" ? -R.deltaY : R.deltaY, T));
7781
7782
  }
7782
- }, d = (O, T, J = !1) => {
7783
- e.monthChangeOnArrows && e.vertical === J && j(O, T);
7784
- }, j = (O, T) => {
7785
- y(O === "right" ? -1 : 1, T);
7786
- }, ce = (O) => {
7783
+ }, d = (R, T, J = !1) => {
7784
+ e.monthChangeOnArrows && e.vertical === J && j(R, T);
7785
+ }, j = (R, T) => {
7786
+ y(R === "right" ? -1 : 1, T);
7787
+ }, ce = (R) => {
7787
7788
  if (W.value.markers)
7788
- return Sa(O.value, W.value.markers);
7789
- }, F = (O, T) => {
7789
+ return Sa(R.value, W.value.markers);
7790
+ }, F = (R, T) => {
7790
7791
  switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
7791
7792
  case "prepend":
7792
7793
  return [!0, !1];
7793
7794
  case "center":
7794
- return [O == 0, !0];
7795
+ return [R == 0, !0];
7795
7796
  case "fair":
7796
- return [O == 0 || T > O, !0];
7797
+ return [R == 0 || T > R, !0];
7797
7798
  case "append":
7798
7799
  return [!1, !1];
7799
7800
  default:
7800
7801
  return [!1, !1];
7801
7802
  }
7802
- }, M = (O, T, J, ae) => {
7803
- if (e.sixWeeks && O.length < 6) {
7804
- const Ce = 6 - O.length, Je = (T.getDay() + 7 - ae) % 7, At = 6 - (J.getDay() + 7 - ae) % 7, [da, xa] = F(Je, At);
7803
+ }, M = (R, T, J, ae) => {
7804
+ if (e.sixWeeks && R.length < 6) {
7805
+ const Ce = 6 - R.length, Je = (T.getDay() + 7 - ae) % 7, At = 6 - (J.getDay() + 7 - ae) % 7, [da, xa] = F(Je, At);
7805
7806
  for (let ca = 1; ca <= Ce; ca++)
7806
7807
  if (xa ? !!(ca % 2) == da : da) {
7807
- const Rt = O[0].days[0], Xa = X(ft(Rt.value, -7), Me(T));
7808
- O.unshift({ days: Xa });
7808
+ const Rt = R[0].days[0], Xa = X(ft(Rt.value, -7), Me(T));
7809
+ R.unshift({ days: Xa });
7809
7810
  } else {
7810
- const Rt = O[O.length - 1], Xa = Rt.days[Rt.days.length - 1], Xl = X(ft(Xa.value, 1), Me(T));
7811
- O.push({ days: Xl });
7811
+ const Rt = R[R.length - 1], Xa = Rt.days[Rt.days.length - 1], Xl = X(ft(Xa.value, 1), Me(T));
7812
+ R.push({ days: Xl });
7812
7813
  }
7813
7814
  }
7814
- return O;
7815
- }, X = (O, T) => {
7816
- const J = q(O), ae = [];
7815
+ return R;
7816
+ }, X = (R, T) => {
7817
+ const J = q(R), ae = [];
7817
7818
  for (let Ce = 0; Ce < 7; Ce++) {
7818
7819
  const Je = ft(J, Ce), At = Me(Je) !== T;
7819
7820
  ae.push({
@@ -7824,9 +7825,9 @@ const Au = ({
7824
7825
  });
7825
7826
  }
7826
7827
  return ae;
7827
- }, he = (O, T) => {
7828
- const J = [], ae = new Date(T, O), Ce = new Date(T, O + 1, 0), Je = e.weekStart, At = gt(ae, { weekStartsOn: Je }), da = (xa) => {
7829
- const ca = X(xa, O);
7828
+ }, he = (R, T) => {
7829
+ const J = [], ae = new Date(T, R), Ce = new Date(T, R + 1, 0), Je = e.weekStart, At = gt(ae, { weekStartsOn: Je }), da = (xa) => {
7830
+ const ca = X(xa, R);
7830
7831
  if (J.push({ days: ca }), !J[J.length - 1].days.some(
7831
7832
  (Rt) => De(ct(Rt.value), ct(Ce))
7832
7833
  )) {
@@ -7835,77 +7836,77 @@ const Au = ({
7835
7836
  }
7836
7837
  };
7837
7838
  return da(At), M(J, ae, Ce, Je);
7838
- }, Re = (O) => {
7839
- const T = Bt(q(O.value), b.hours, b.minutes, st());
7839
+ }, Re = (R) => {
7840
+ const T = Bt(q(R.value), w.hours, w.minutes, st());
7840
7841
  a("date-update", T), G.value.enabled ? En(T, o, G.value.limit) : o.value = T, n(), mt().then(() => {
7841
7842
  Q();
7842
7843
  });
7843
- }, Pe = (O) => f.value.noDisabledRange ? Il(l.value[0], O).some((T) => R(T)) : !1, ie = () => {
7844
- l.value = o.value ? o.value.slice() : [], l.value.length === 2 && !(f.value.fixedStart || f.value.fixedEnd) && (l.value = []);
7845
- }, wt = (O, T) => {
7844
+ }, Pe = (R) => p.value.noDisabledRange ? Il(l.value[0], R).some((T) => O(T)) : !1, ie = () => {
7845
+ l.value = o.value ? o.value.slice() : [], l.value.length === 2 && !(p.value.fixedStart || p.value.fixedEnd) && (l.value = []);
7846
+ }, wt = (R, T) => {
7846
7847
  const J = [
7847
- q(O.value),
7848
- ft(q(O.value), +f.value.autoRange)
7848
+ q(R.value),
7849
+ ft(q(R.value), +p.value.autoRange)
7849
7850
  ];
7850
- C(J) ? (T && vt(O.value), l.value = J) : a("invalid-date", O.value);
7851
- }, vt = (O) => {
7852
- const T = Me(q(O)), J = we(q(O));
7851
+ C(J) ? (T && vt(R.value), l.value = J) : a("invalid-date", R.value);
7852
+ }, vt = (R) => {
7853
+ const T = Me(q(R)), J = we(q(R));
7853
7854
  if (m(0, T, J), u.value.count > 0)
7854
7855
  for (let ae = 1; ae < u.value.count; ae++) {
7855
7856
  const Ce = su(
7856
- Oe(q(O), { year: L.value(ae - 1), month: V.value(ae - 1) })
7857
+ Oe(q(R), { year: L.value(ae - 1), month: V.value(ae - 1) })
7857
7858
  );
7858
7859
  m(ae, Ce.month, Ce.year);
7859
7860
  }
7860
- }, Ha = (O) => {
7861
- if (Pe(O.value) || !x(O.value, o.value, f.value.fixedStart ? 0 : 1))
7862
- return a("invalid-date", O.value);
7863
- l.value = ql(q(O.value), o, a, f);
7864
- }, ia = (O, T) => {
7865
- if (ie(), f.value.autoRange)
7866
- return wt(O, T);
7867
- if (f.value.fixedStart || f.value.fixedEnd)
7868
- return Ha(O);
7869
- l.value[0] ? x(q(O.value), o.value) && !Pe(O.value) ? Ne(q(O.value), q(l.value[0])) ? (l.value.unshift(q(O.value)), a("range-end", l.value[0])) : (l.value[1] = q(O.value), a("range-end", l.value[1])) : (e.autoApply && a("auto-apply-invalid", O.value), a("invalid-date", O.value)) : (l.value[0] = q(O.value), a("range-start", l.value[0]));
7870
- }, st = (O = !0) => e.enableSeconds ? Array.isArray(b.seconds) ? O ? b.seconds[0] : b.seconds[1] : b.seconds : 0, ua = (O) => {
7871
- l.value[O] = Bt(
7872
- l.value[O],
7873
- b.hours[O],
7874
- b.minutes[O],
7875
- st(O !== 1)
7861
+ }, Ha = (R) => {
7862
+ if (Pe(R.value) || !x(R.value, o.value, p.value.fixedStart ? 0 : 1))
7863
+ return a("invalid-date", R.value);
7864
+ l.value = ql(q(R.value), o, a, p);
7865
+ }, ia = (R, T) => {
7866
+ if (ie(), p.value.autoRange)
7867
+ return wt(R, T);
7868
+ if (p.value.fixedStart || p.value.fixedEnd)
7869
+ return Ha(R);
7870
+ l.value[0] ? x(q(R.value), o.value) && !Pe(R.value) ? Ne(q(R.value), q(l.value[0])) ? (l.value.unshift(q(R.value)), a("range-end", l.value[0])) : (l.value[1] = q(R.value), a("range-end", l.value[1])) : (e.autoApply && a("auto-apply-invalid", R.value), a("invalid-date", R.value)) : (l.value[0] = q(R.value), a("range-start", l.value[0]));
7871
+ }, st = (R = !0) => e.enableSeconds ? Array.isArray(w.seconds) ? R ? w.seconds[0] : w.seconds[1] : w.seconds : 0, ua = (R) => {
7872
+ l.value[R] = Bt(
7873
+ l.value[R],
7874
+ w.hours[R],
7875
+ w.minutes[R],
7876
+ st(R !== 1)
7876
7877
  );
7877
7878
  }, Wa = () => {
7878
- var O, T;
7879
- l.value[0] && l.value[1] && +((O = l.value) == null ? void 0 : O[0]) > +((T = l.value) == null ? void 0 : T[1]) && (l.value.reverse(), a("range-start", l.value[0]), a("range-end", l.value[1]));
7879
+ var R, T;
7880
+ l.value[0] && l.value[1] && +((R = l.value) == null ? void 0 : R[0]) > +((T = l.value) == null ? void 0 : T[1]) && (l.value.reverse(), a("range-start", l.value[0]), a("range-end", l.value[1]));
7880
7881
  }, Pa = () => {
7881
7882
  l.value.length && (l.value[0] && !l.value[1] ? ua(0) : (ua(0), ua(1), n()), Wa(), o.value = l.value.slice(), Va(l.value, a, e.autoApply, e.modelAuto));
7882
- }, za = (O, T = !1) => {
7883
- if (R(O.value) || !O.current && e.hideOffsetDates)
7884
- return a("invalid-date", O.value);
7885
- if (s.value = JSON.parse(JSON.stringify(O)), !f.value.enabled)
7886
- return Re(O);
7887
- nl(b.hours) && nl(b.minutes) && !G.value.enabled && (ia(O, T), Pa());
7888
- }, ja = (O, T) => {
7883
+ }, za = (R, T = !1) => {
7884
+ if (O(R.value) || !R.current && e.hideOffsetDates)
7885
+ return a("invalid-date", R.value);
7886
+ if (s.value = JSON.parse(JSON.stringify(R)), !p.value.enabled)
7887
+ return Re(R);
7888
+ nl(w.hours) && nl(w.minutes) && !G.value.enabled && (ia(R, T), Pa());
7889
+ }, ja = (R, T) => {
7889
7890
  var J;
7890
- m(O, T.month, T.year, !0), u.value.count && !u.value.solo && ue(O), a("update-month-year", { instance: O, month: T.month, year: T.year }), t(u.value.solo ? O : void 0);
7891
+ m(R, T.month, T.year, !0), u.value.count && !u.value.solo && ue(R), a("update-month-year", { instance: R, month: T.month, year: T.year }), t(u.value.solo ? R : void 0);
7891
7892
  const ae = (J = e.flow) != null && J.length ? e.flow[e.flowStep] : void 0;
7892
7893
  !T.fromNav && (ae === et.month || ae === et.year) && n();
7893
- }, qa = (O, T) => {
7894
+ }, qa = (R, T) => {
7894
7895
  jl({
7895
- value: O,
7896
+ value: R,
7896
7897
  modelValue: o,
7897
- range: f.value.enabled,
7898
- timezone: T ? void 0 : _.value.timezone
7899
- }), g(), e.multiCalendars && mt().then(() => re(!0));
7898
+ range: p.value.enabled,
7899
+ timezone: T ? void 0 : k.value.timezone
7900
+ }), b(), e.multiCalendars && mt().then(() => re(!0));
7900
7901
  }, Ua = () => {
7901
- f.value.enabled ? o.value && Array.isArray(o.value) && o.value[0] ? o.value = Ne(q(), o.value[0]) ? [q(), o.value[0]] : [o.value[0], q()] : o.value = [q()] : o.value = q(), g();
7902
+ p.value.enabled ? o.value && Array.isArray(o.value) && o.value[0] ? o.value = Ne(q(), o.value[0]) ? [q(), o.value[0]] : [o.value[0], q()] : o.value = [q()] : o.value = q(), b();
7902
7903
  }, Ga = () => {
7903
7904
  if (Array.isArray(o.value))
7904
7905
  if (G.value.enabled) {
7905
- const O = Qa();
7906
- o.value[o.value.length - 1] = h(O);
7906
+ const R = Qa();
7907
+ o.value[o.value.length - 1] = h(R);
7907
7908
  } else
7908
- o.value = o.value.map((O, T) => O && h(O, T));
7909
+ o.value = o.value.map((R, T) => R && h(R, T));
7909
7910
  else
7910
7911
  o.value = h(o.value);
7911
7912
  a("time-update");
@@ -7915,9 +7916,9 @@ const Au = ({
7915
7916
  modelValue: o,
7916
7917
  month: L,
7917
7918
  year: V,
7918
- time: b,
7919
+ time: w,
7919
7920
  disabledTimesConfig: pe,
7920
- today: w,
7921
+ today: _,
7921
7922
  validateTime: se,
7922
7923
  getCalendarDays: he,
7923
7924
  getMarker: ce,
@@ -7928,8 +7929,8 @@ const Au = ({
7928
7929
  updateMonthYear: ja,
7929
7930
  presetDate: qa,
7930
7931
  selectCurrentDate: Ua,
7931
- updateTime: (O, T = !0, J = !1) => {
7932
- S(O, T, J, Ga);
7932
+ updateTime: (R, T = !0, J = !1) => {
7933
+ S(R, T, J, Ga);
7933
7934
  }
7934
7935
  };
7935
7936
  }, Od = { key: 0 }, Sd = /* @__PURE__ */ Te({
@@ -7967,21 +7968,21 @@ const Au = ({
7967
7968
  month: s,
7968
7969
  year: o,
7969
7970
  modelValue: v,
7970
- time: b,
7971
- disabledTimesConfig: w,
7971
+ time: w,
7972
+ disabledTimesConfig: _,
7972
7973
  today: u,
7973
- validateTime: k,
7974
- getCalendarDays: f,
7974
+ validateTime: g,
7975
+ getCalendarDays: p,
7975
7976
  getMarker: D,
7976
- handleArrow: _,
7977
+ handleArrow: k,
7977
7978
  handleScroll: W,
7978
7979
  handleSwipe: G,
7979
7980
  selectDate: P,
7980
- updateMonthYear: R,
7981
+ updateMonthYear: O,
7981
7982
  presetDate: C,
7982
7983
  selectCurrentDate: x,
7983
7984
  updateTime: S
7984
- } = Rd(l, n, me, Y), h = It(), { setHoverDate: N, getDayClassData: ee, clearHoverDate: se } = Su(v, l), { defaultedMultiCalendars: pe } = Ie(l), L = U([]), V = U([]), oe = U(null), m = it(h, "calendar"), g = it(h, "monthYear"), $ = it(h, "timePicker"), Q = (Z) => {
7985
+ } = Rd(l, n, me, Y), h = It(), { setHoverDate: N, getDayClassData: ee, clearHoverDate: se } = Su(v, l), { defaultedMultiCalendars: pe } = Ie(l), L = U([]), V = U([]), oe = U(null), m = it(h, "calendar"), b = it(h, "monthYear"), $ = it(h, "timePicker"), Q = (Z) => {
7985
7986
  l.shadow || n("mount", Z);
7986
7987
  };
7987
7988
  dt(
@@ -7993,7 +7994,7 @@ const Au = ({
7993
7994
  },
7994
7995
  { deep: !0 }
7995
7996
  );
7996
- const re = H(() => (Z) => f(s.value(Z), o.value(Z)).map((d) => ({
7997
+ const re = H(() => (Z) => p(s.value(Z), o.value(Z)).map((d) => ({
7997
7998
  ...d,
7998
7999
  days: d.days.map((j) => (j.marker = D(j), j.classData = ee(j), j))
7999
8000
  })));
@@ -8029,7 +8030,7 @@ const Au = ({
8029
8030
  var d;
8030
8031
  (d = L.value[0]) == null || d.handleMonthYearChange(Z, !0);
8031
8032
  }, ue = (Z) => {
8032
- R(0, { month: s.value(0), year: o.value(0) + (Z ? 1 : -1), fromNav: !0 });
8033
+ O(0, { month: s.value(0), year: o.value(0) + (Z ? 1 : -1), fromNav: !0 });
8033
8034
  }, ge = (Z, d) => {
8034
8035
  Z === et.time && n(`time-picker-${d ? "open" : "close"}`), n("overlay-toggle", { open: d, overlay: Z });
8035
8036
  }, K = (Z) => {
@@ -8042,28 +8043,28 @@ const Au = ({
8042
8043
  toggleMonthPicker: i,
8043
8044
  toggleYearPicker: E,
8044
8045
  toggleTimePicker: le,
8045
- handleArrow: _,
8046
- updateMonthYear: R,
8046
+ handleArrow: k,
8047
+ updateMonthYear: O,
8047
8048
  getSidebarProps: () => ({
8048
8049
  modelValue: v,
8049
8050
  month: s,
8050
8051
  year: o,
8051
- time: b,
8052
+ time: w,
8052
8053
  updateTime: S,
8053
- updateMonthYear: R,
8054
+ updateMonthYear: O,
8054
8055
  selectDate: P,
8055
8056
  presetDate: C
8056
8057
  }),
8057
8058
  changeMonth: y,
8058
8059
  changeYear: ue,
8059
8060
  selectWeekDate: te
8060
- }), (Z, d) => (p(), A(_e, null, [
8061
+ }), (Z, d) => (f(), A(_e, null, [
8061
8062
  Ee(Fa, {
8062
8063
  "multi-calendars": c(pe).count,
8063
8064
  collapse: Z.collapse
8064
8065
  }, {
8065
8066
  default: fe(({ instance: j, index: ce }) => [
8066
- Z.disableMonthYearSelect ? I("", !0) : (p(), be(wd, Fe({
8067
+ Z.disableMonthYearSelect ? I("", !0) : (f(), be(wd, Fe({
8067
8068
  key: 0,
8068
8069
  ref: (F) => {
8069
8070
  F && (L.value[ce] = F);
@@ -8076,11 +8077,11 @@ const Au = ({
8076
8077
  }, Z.$props, {
8077
8078
  onMount: d[0] || (d[0] = (F) => Q(c(qt).header)),
8078
8079
  onResetFlow: d[1] || (d[1] = (F) => Z.$emit("reset-flow")),
8079
- onUpdateMonthYear: (F) => c(R)(j, F),
8080
+ onUpdateMonthYear: (F) => c(O)(j, F),
8080
8081
  onOverlayClosed: K,
8081
8082
  onOverlayOpened: d[2] || (d[2] = (F) => Z.$emit("overlay-toggle", { open: !0, overlay: F }))
8082
8083
  }), at({ _: 2 }, [
8083
- Se(c(g), (F, M) => ({
8084
+ Se(c(b), (F, M) => ({
8084
8085
  name: F,
8085
8086
  fn: fe((X) => [
8086
8087
  ne(Z.$slots, F, Qe(rt(X)))
@@ -8116,18 +8117,18 @@ const Au = ({
8116
8117
  ]),
8117
8118
  _: 3
8118
8119
  }, 8, ["multi-calendars", "collapse"]),
8119
- Z.enableTimePicker ? (p(), A("div", Od, [
8120
- Z.$slots["time-picker"] ? ne(Z.$slots, "time-picker", Qe(Fe({ key: 0 }, { time: c(b), updateTime: c(S) }))) : (p(), be(Gl, Fe({
8120
+ Z.enableTimePicker ? (f(), A("div", Od, [
8121
+ Z.$slots["time-picker"] ? ne(Z.$slots, "time-picker", Qe(Fe({ key: 0 }, { time: c(w), updateTime: c(S) }))) : (f(), be(Gl, Fe({
8121
8122
  key: 1,
8122
8123
  ref_key: "timePickerRef",
8123
8124
  ref: oe
8124
8125
  }, Z.$props, {
8125
- hours: c(b).hours,
8126
- minutes: c(b).minutes,
8127
- seconds: c(b).seconds,
8126
+ hours: c(w).hours,
8127
+ minutes: c(w).minutes,
8128
+ seconds: c(w).seconds,
8128
8129
  "internal-model-value": Z.internalModelValue,
8129
- "disabled-times-config": c(w),
8130
- "validate-time": c(k),
8130
+ "disabled-times-config": c(_),
8131
+ "validate-time": c(g),
8131
8132
  onMount: d[8] || (d[8] = (j) => Q(c(qt).timePicker)),
8132
8133
  "onUpdate:hours": d[9] || (d[9] = (j) => c(S)(j)),
8133
8134
  "onUpdate:minutes": d[10] || (d[10] = (j) => c(S)(j, !1)),
@@ -8155,32 +8156,32 @@ const Au = ({
8155
8156
  defaultedRange: s,
8156
8157
  propDates: o,
8157
8158
  defaultedFilters: v,
8158
- defaultedMultiDates: b
8159
- } = Ie(e), { modelValue: w, year: u, month: k, calendars: f } = Da(e, a), { isDisabled: D } = Ft(e), { selectYear: _, groupedYears: W, showYearPicker: G, isDisabled: P, toggleYearPicker: R, handleYearSelect: C, handleYear: x } = Ul({
8160
- modelValue: w,
8159
+ defaultedMultiDates: w
8160
+ } = Ie(e), { modelValue: _, year: u, month: g, calendars: p } = Da(e, a), { isDisabled: D } = Ft(e), { selectYear: k, groupedYears: W, showYearPicker: G, isDisabled: P, toggleYearPicker: O, handleYearSelect: C, handleYear: x } = Ul({
8161
+ modelValue: _,
8161
8162
  multiCalendars: n,
8162
8163
  highlight: r,
8163
- calendars: f,
8164
+ calendars: p,
8164
8165
  propDates: o,
8165
- month: k,
8166
+ month: g,
8166
8167
  year: u,
8167
8168
  filters: v,
8168
8169
  props: e,
8169
8170
  emit: a
8170
- }), S = (m, g) => [m, g].map(($) => Tt($, "MMMM", { locale: e.formatLocale })).join("-"), h = H(() => (m) => w.value ? Array.isArray(w.value) ? w.value.some((g) => Qn(m, g)) : Qn(w.value, m) : !1), N = (m) => {
8171
+ }), S = (m, b) => [m, b].map(($) => Tt($, "MMMM", { locale: e.formatLocale })).join("-"), h = H(() => (m) => _.value ? Array.isArray(_.value) ? _.value.some((b) => Qn(m, b)) : Qn(_.value, m) : !1), N = (m) => {
8171
8172
  if (s.value.enabled) {
8172
- if (Array.isArray(w.value)) {
8173
- const g = De(m, w.value[0]) || De(m, w.value[1]);
8174
- return La(w.value, t.value, m) && !g;
8173
+ if (Array.isArray(_.value)) {
8174
+ const b = De(m, _.value[0]) || De(m, _.value[1]);
8175
+ return La(_.value, t.value, m) && !b;
8175
8176
  }
8176
8177
  return !1;
8177
8178
  }
8178
8179
  return !1;
8179
- }, ee = (m, g) => m.quarter === Wn(g) && m.year === we(g), se = (m) => typeof r.value == "function" ? r.value({ quarter: Wn(m), year: we(m) }) : !!r.value.quarters.find((g) => ee(g, m)), pe = H(() => (m) => {
8180
- const g = Oe(/* @__PURE__ */ new Date(), { year: u.value(m) });
8180
+ }, ee = (m, b) => m.quarter === Wn(b) && m.year === we(b), se = (m) => typeof r.value == "function" ? r.value({ quarter: Wn(m), year: we(m) }) : !!r.value.quarters.find((b) => ee(b, m)), pe = H(() => (m) => {
8181
+ const b = Oe(/* @__PURE__ */ new Date(), { year: u.value(m) });
8181
8182
  return ts({
8182
- start: yn(g),
8183
- end: hl(g)
8183
+ start: yn(b),
8184
+ end: hl(b)
8184
8185
  }).map(($) => {
8185
8186
  const Q = Wt($), re = zn($), me = D($), Y = N(Q), B = se(Q);
8186
8187
  return {
@@ -8193,11 +8194,11 @@ const Au = ({
8193
8194
  };
8194
8195
  });
8195
8196
  }), L = (m) => {
8196
- En(m, w, b.value.limit), a("auto-apply", !0);
8197
+ En(m, _, w.value.limit), a("auto-apply", !0);
8197
8198
  }, V = (m) => {
8198
- w.value = Yn(w, m, a), Va(w.value, a, e.autoApply, e.modelAuto);
8199
+ _.value = Yn(_, m, a), Va(_.value, a, e.autoApply, e.modelAuto);
8199
8200
  }, oe = (m) => {
8200
- w.value = m, a("auto-apply");
8201
+ _.value = m, a("auto-apply");
8201
8202
  };
8202
8203
  return {
8203
8204
  defaultedConfig: l,
@@ -8207,16 +8208,16 @@ const Au = ({
8207
8208
  isDisabled: P,
8208
8209
  quarters: pe,
8209
8210
  showYearPicker: G,
8210
- modelValue: w,
8211
+ modelValue: _,
8211
8212
  setHoverDate: (m) => {
8212
8213
  t.value = m;
8213
8214
  },
8214
- selectYear: _,
8215
- selectQuarter: (m, g, $) => {
8215
+ selectYear: k,
8216
+ selectQuarter: (m, b, $) => {
8216
8217
  if (!$)
8217
- return f.value[g].month = Me(zn(m)), b.value.enabled ? L(m) : s.value.enabled ? V(m) : oe(m);
8218
+ return p.value[b].month = Me(zn(m)), w.value.enabled ? L(m) : s.value.enabled ? V(m) : oe(m);
8218
8219
  },
8219
- toggleYearPicker: R,
8220
+ toggleYearPicker: O,
8220
8221
  handleYearSelect: C,
8221
8222
  handleYear: x
8222
8223
  };
@@ -8242,25 +8243,25 @@ const Au = ({
8242
8243
  const n = t, l = e, r = It(), s = it(r, "yearMode"), {
8243
8244
  defaultedMultiCalendars: o,
8244
8245
  defaultedConfig: v,
8245
- groupedYears: b,
8246
- year: w,
8246
+ groupedYears: w,
8247
+ year: _,
8247
8248
  isDisabled: u,
8248
- quarters: k,
8249
- modelValue: f,
8249
+ quarters: g,
8250
+ modelValue: p,
8250
8251
  showYearPicker: D,
8251
- setHoverDate: _,
8252
+ setHoverDate: k,
8252
8253
  selectQuarter: W,
8253
8254
  toggleYearPicker: G,
8254
8255
  handleYearSelect: P,
8255
- handleYear: R
8256
+ handleYear: O
8256
8257
  } = Ed(l, n);
8257
8258
  return a({ getSidebarProps: () => ({
8258
- modelValue: f,
8259
- year: w,
8259
+ modelValue: p,
8260
+ year: _,
8260
8261
  selectQuarter: W,
8261
8262
  handleYearSelect: P,
8262
- handleYear: R
8263
- }) }), (C, x) => (p(), be(Fa, {
8263
+ handleYear: O
8264
+ }) }), (C, x) => (f(), be(Fa, {
8264
8265
  "multi-calendars": c(o).count,
8265
8266
  collapse: C.collapse,
8266
8267
  stretch: ""
@@ -8276,12 +8277,12 @@ const Au = ({
8276
8277
  }) : I("", !0),
8277
8278
  z("div", null, [
8278
8279
  Ee(zl, Fe(C.$props, {
8279
- items: c(b)(S),
8280
+ items: c(w)(S),
8280
8281
  instance: S,
8281
8282
  "show-year-picker": c(D)[S],
8282
- year: c(w)(S),
8283
+ year: c(_)(S),
8283
8284
  "is-disabled": (h) => c(u)(S, h),
8284
- onHandleYear: (h) => c(R)(S, h),
8285
+ onHandleYear: (h) => c(O)(S, h),
8285
8286
  onYearSelect: (h) => c(P)(h, S),
8286
8287
  onToggleYearPicker: (h) => c(G)(S, h == null ? void 0 : h.flow, h == null ? void 0 : h.show)
8287
8288
  }), at({ _: 2 }, [
@@ -8294,7 +8295,7 @@ const Au = ({
8294
8295
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
8295
8296
  ]),
8296
8297
  z("div", Yd, [
8297
- (p(!0), A(_e, null, Se(c(k)(S), (h, N) => (p(), A("div", { key: N }, [
8298
+ (f(!0), A(_e, null, Se(c(g)(S), (h, N) => (f(), A("div", { key: N }, [
8298
8299
  z("button", {
8299
8300
  type: "button",
8300
8301
  class: ye(["dp--qr-btn", {
@@ -8306,13 +8307,13 @@ const Au = ({
8306
8307
  "data-test": h.value,
8307
8308
  disabled: h.disabled,
8308
8309
  onClick: (ee) => c(W)(h.value, S, h.disabled),
8309
- onMouseover: (ee) => c(_)(h.value)
8310
+ onMouseover: (ee) => c(k)(h.value)
8310
8311
  }, [
8311
8312
  C.$slots.quarter ? ne(C.$slots, "quarter", {
8312
8313
  key: 0,
8313
8314
  value: h.value,
8314
8315
  text: h.text
8315
- }) : (p(), A(_e, { key: 1 }, [
8316
+ }) : (f(), A(_e, { key: 1 }, [
8316
8317
  ut(ke(h.text), 1)
8317
8318
  ], 64))
8318
8319
  ], 42, Bd)
@@ -8384,51 +8385,51 @@ const Au = ({
8384
8385
  noOverlayFocus: l.noOverlayFocus,
8385
8386
  menuWrapRef: r.value
8386
8387
  };
8387
- }), { setMenuFocused: o, setShiftKey: v, control: b } = Wl(), w = It(), { defaultedTextInput: u, defaultedInline: k, defaultedConfig: f } = Ie(l), D = U(null), _ = U(0), W = U(null), G = U(!1), P = U(null);
8388
+ }), { setMenuFocused: o, setShiftKey: v, control: w } = Wl(), _ = It(), { defaultedTextInput: u, defaultedInline: g, defaultedConfig: p } = Ie(l), D = U(null), k = U(0), W = U(null), G = U(!1), P = U(null);
8388
8389
  Ue(() => {
8389
8390
  if (!l.shadow) {
8390
- G.value = !0, R(), window.addEventListener("resize", R);
8391
+ G.value = !0, O(), window.addEventListener("resize", O);
8391
8392
  const M = qe(r);
8392
- if (M && !u.value.enabled && !k.value.enabled && (o(!0), oe()), M) {
8393
+ if (M && !u.value.enabled && !g.value.enabled && (o(!0), oe()), M) {
8393
8394
  const X = (he) => {
8394
- f.value.allowPreventDefault && he.preventDefault(), Yt(he, f.value, !0);
8395
+ p.value.allowPreventDefault && he.preventDefault(), Yt(he, p.value, !0);
8395
8396
  };
8396
8397
  M.addEventListener("pointerdown", X), M.addEventListener("mousedown", X);
8397
8398
  }
8398
8399
  }
8399
8400
  }), Ya(() => {
8400
- window.removeEventListener("resize", R);
8401
+ window.removeEventListener("resize", O);
8401
8402
  });
8402
- const R = () => {
8403
+ const O = () => {
8403
8404
  const M = qe(W);
8404
- M && (_.value = M.getBoundingClientRect().width);
8405
+ M && (k.value = M.getBoundingClientRect().width);
8405
8406
  }, { arrowRight: C, arrowLeft: x, arrowDown: S, arrowUp: h } = Nt(), { flowStep: N, updateFlowStep: ee, childMount: se, resetFlow: pe } = Eu(l, n, P), L = H(() => l.monthPicker ? Qu : l.yearPicker ? Ju : l.timePicker ? pd : l.quarterPicker ? Ld : Sd), V = H(() => {
8406
8407
  var M;
8407
- if (f.value.arrowLeft)
8408
- return f.value.arrowLeft;
8408
+ if (p.value.arrowLeft)
8409
+ return p.value.arrowLeft;
8409
8410
  const X = (M = r.value) == null ? void 0 : M.getBoundingClientRect(), he = l.getInputRect();
8410
- return he.width < _.value && he.left <= ((X == null ? void 0 : X.left) ?? 0) ? `${he.width / 2}px` : "50%";
8411
+ return he.width < k.value && he.left <= ((X == null ? void 0 : X.left) ?? 0) ? `${he.width / 2}px` : "50%";
8411
8412
  }), oe = () => {
8412
8413
  const M = qe(r);
8413
8414
  M && M.focus({ preventScroll: !0 });
8414
8415
  }, m = H(() => {
8415
8416
  var M;
8416
8417
  return ((M = P.value) == null ? void 0 : M.getSidebarProps()) || {};
8417
- }), g = () => {
8418
+ }), b = () => {
8418
8419
  l.openOnTop && n("recalculate-position");
8419
- }, $ = it(w, "action"), Q = H(() => l.monthPicker || l.yearPicker ? it(w, "monthYear") : l.timePicker ? it(w, "timePicker") : it(w, "shared")), re = H(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), me = H(() => ({
8420
+ }, $ = it(_, "action"), Q = H(() => l.monthPicker || l.yearPicker ? it(_, "monthYear") : l.timePicker ? it(_, "timePicker") : it(_, "shared")), re = H(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), me = H(() => ({
8420
8421
  dp__menu_disabled: l.disabled,
8421
8422
  dp__menu_readonly: l.readonly,
8422
8423
  "dp-menu-loading": l.loading
8423
8424
  })), Y = H(
8424
8425
  () => ({
8425
8426
  dp__menu: !0,
8426
- dp__menu_index: !k.value.enabled,
8427
- dp__relative: k.value.enabled,
8427
+ dp__menu_index: !g.value.enabled,
8428
+ dp__relative: g.value.enabled,
8428
8429
  [l.menuClassName]: !!l.menuClassName
8429
8430
  })
8430
8431
  ), B = (M) => {
8431
- Yt(M, f.value, !0);
8432
+ Yt(M, p.value, !0);
8432
8433
  }, i = () => {
8433
8434
  l.escClose && n("close-picker");
8434
8435
  }, E = (M) => {
@@ -8444,7 +8445,7 @@ const Au = ({
8444
8445
  } else
8445
8446
  M === nt.right || M === nt.up ? ge("handleArrow", nt.left, 0, M === nt.up) : ge("handleArrow", nt.right, 0, M === nt.down);
8446
8447
  }, le = (M) => {
8447
- v(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"));
8448
+ v(M.shiftKey), !l.disableMonthYearSelect && M.code === Be.tab && M.target.classList.contains("dp__menu") && w.value.shiftKeyInMenu && (M.preventDefault(), Yt(M, p.value, !0), n("close-picker"));
8448
8449
  }, te = () => {
8449
8450
  oe(), n("time-picker-close");
8450
8451
  }, y = (M) => {
@@ -8491,7 +8492,7 @@ const Au = ({
8491
8492
  switchView: ue
8492
8493
  }), (M, X) => {
8493
8494
  var he, Re, Pe;
8494
- return p(), A("div", {
8495
+ return f(), A("div", {
8495
8496
  id: M.uid ? `dp-menu-${M.uid}` : void 0,
8496
8497
  ref_key: "dpMenuRef",
8497
8498
  ref: r,
@@ -8504,13 +8505,13 @@ const Au = ({
8504
8505
  onClick: B,
8505
8506
  onKeydown: F
8506
8507
  }, [
8507
- (M.disabled || M.readonly) && c(k).enabled || M.loading ? (p(), A("div", {
8508
+ (M.disabled || M.readonly) && c(g).enabled || M.loading ? (f(), A("div", {
8508
8509
  key: 0,
8509
8510
  class: ye(me.value)
8510
8511
  }, [
8511
- M.loading ? (p(), A("div", Nd, Vd)) : I("", !0)
8512
+ M.loading ? (f(), A("div", Nd, Vd)) : I("", !0)
8512
8513
  ], 2)) : I("", !0),
8513
- !c(k).enabled && !M.teleportCenter ? (p(), A("div", {
8514
+ !c(g).enabled && !M.teleportCenter ? (f(), A("div", {
8514
8515
  key: 1,
8515
8516
  class: ye(re.value)
8516
8517
  }, null, 2)) : I("", !0),
@@ -8521,22 +8522,22 @@ const Au = ({
8521
8522
  dp__menu_content_wrapper: ((Re = M.presetDates) == null ? void 0 : Re.length) || !!M.$slots["left-sidebar"] || !!M.$slots["right-sidebar"],
8522
8523
  "dp--menu-content-wrapper-collapsed": e.collapse && (((Pe = M.presetDates) == null ? void 0 : Pe.length) || !!M.$slots["left-sidebar"] || !!M.$slots["right-sidebar"])
8523
8524
  }),
8524
- style: tt({ "--dp-menu-width": `${_.value}px` })
8525
+ style: tt({ "--dp-menu-width": `${k.value}px` })
8525
8526
  }, [
8526
- M.$slots["left-sidebar"] ? (p(), A("div", Hd, [
8527
+ M.$slots["left-sidebar"] ? (f(), A("div", Hd, [
8527
8528
  ne(M.$slots, "left-sidebar", Qe(rt(m.value)))
8528
8529
  ])) : I("", !0),
8529
- M.presetDates.length ? (p(), A("div", {
8530
+ M.presetDates.length ? (f(), A("div", {
8530
8531
  key: 1,
8531
8532
  class: ye({ "dp--preset-dates-collapsed": e.collapse, "dp--preset-dates": !0 })
8532
8533
  }, [
8533
- (p(!0), A(_e, null, Se(M.presetDates, (ie, wt) => (p(), A(_e, { key: wt }, [
8534
+ (f(!0), A(_e, null, Se(M.presetDates, (ie, wt) => (f(), A(_e, { key: wt }, [
8534
8535
  ie.slot ? ne(M.$slots, ie.slot, {
8535
8536
  key: 0,
8536
8537
  presetDate: Z,
8537
8538
  label: ie.label,
8538
8539
  value: ie.value
8539
- }) : (p(), A("button", {
8540
+ }) : (f(), A("button", {
8540
8541
  key: 1,
8541
8542
  type: "button",
8542
8543
  style: tt(ie.style || {}),
@@ -8553,7 +8554,7 @@ const Au = ({
8553
8554
  class: "dp__instance_calendar",
8554
8555
  role: "document"
8555
8556
  }, [
8556
- (p(), be(Ba(L.value), Fe({
8557
+ (f(), be(Ba(L.value), Fe({
8557
8558
  ref_key: "dynCmpRef",
8558
8559
  ref: P
8559
8560
  }, s.value, {
@@ -8574,7 +8575,7 @@ const Au = ({
8574
8575
  onAmPmChange: X[9] || (X[9] = (ie) => M.$emit("am-pm-change", ie)),
8575
8576
  onTimePickerOpen: X[10] || (X[10] = (ie) => M.$emit("time-picker-open", ie)),
8576
8577
  onTimePickerClose: te,
8577
- onRecalculatePosition: g,
8578
+ onRecalculatePosition: b,
8578
8579
  onUpdateMonthYear: X[11] || (X[11] = (ie) => M.$emit("update-month-year", ie)),
8579
8580
  onAutoApplyInvalid: X[12] || (X[12] = (ie) => M.$emit("auto-apply-invalid", ie)),
8580
8581
  onInvalidDate: X[13] || (X[13] = (ie) => M.$emit("invalid-date", ie)),
@@ -8589,21 +8590,21 @@ const Au = ({
8589
8590
  }))
8590
8591
  ]), 1040, ["flow-step", "onMount", "onUpdateFlowStep", "onResetFlow"]))
8591
8592
  ], 512),
8592
- M.$slots["right-sidebar"] ? (p(), A("div", zd, [
8593
+ M.$slots["right-sidebar"] ? (f(), A("div", zd, [
8593
8594
  ne(M.$slots, "right-sidebar", Qe(rt(m.value)))
8594
8595
  ])) : I("", !0),
8595
- M.$slots["action-extra"] ? (p(), A("div", jd, [
8596
+ M.$slots["action-extra"] ? (f(), A("div", jd, [
8596
8597
  M.$slots["action-extra"] ? ne(M.$slots, "action-extra", {
8597
8598
  key: 0,
8598
8599
  selectCurrentDate: K
8599
8600
  }) : I("", !0)
8600
8601
  ])) : I("", !0)
8601
8602
  ], 6),
8602
- !M.autoApply || c(f).keepActionRow ? (p(), be(Vu, Fe({
8603
+ !M.autoApply || c(p).keepActionRow ? (f(), be(Vu, Fe({
8603
8604
  key: 2,
8604
8605
  "menu-mount": G.value
8605
8606
  }, s.value, {
8606
- "calendar-width": _.value,
8607
+ "calendar-width": k.value,
8607
8608
  onClosePicker: X[16] || (X[16] = (ie) => M.$emit("close-picker")),
8608
8609
  onSelectDate: X[17] || (X[17] = (ie) => M.$emit("select-date")),
8609
8610
  onInvalidSelect: X[18] || (X[18] = (ie) => M.$emit("invalid-select")),
@@ -8677,7 +8678,7 @@ const Au = ({
8677
8678
  "overlay-toggle"
8678
8679
  ],
8679
8680
  setup(e, { expose: a, emit: t }) {
8680
- const n = t, l = e, r = It(), s = U(!1), o = ga(l, "modelValue"), v = ga(l, "timezone"), b = U(null), w = U(null), u = U(null), k = U(!1), f = U(null), D = U(!1), _ = U(!1), W = U(!1), { setMenuFocused: G, setShiftKey: P } = Wl(), { clearArrowNav: R } = Nt(), { validateDate: C, isValidTime: x } = Ft(l), {
8681
+ const n = t, l = e, r = It(), s = U(!1), o = ga(l, "modelValue"), v = ga(l, "timezone"), w = U(null), _ = U(null), u = U(null), g = U(!1), p = U(null), D = U(!1), k = U(!1), W = U(!1), { setMenuFocused: G, setShiftKey: P } = Wl(), { clearArrowNav: O } = Nt(), { validateDate: C, isValidTime: x } = Ft(l), {
8681
8682
  defaultedTransitions: S,
8682
8683
  defaultedTextInput: h,
8683
8684
  defaultedInline: N,
@@ -8688,13 +8689,13 @@ const Au = ({
8688
8689
  Ue(() => {
8689
8690
  E(l.modelValue), mt().then(() => {
8690
8691
  if (!N.value.enabled) {
8691
- const T = me(f.value);
8692
+ const T = me(p.value);
8692
8693
  T == null || T.addEventListener("scroll", ce), window == null || window.addEventListener("resize", F);
8693
8694
  }
8694
8695
  }), N.value.enabled && (s.value = !0), window == null || window.addEventListener("keyup", M), window == null || window.addEventListener("keydown", X);
8695
8696
  }), Ya(() => {
8696
8697
  if (!N.value.enabled) {
8697
- const T = me(f.value);
8698
+ const T = me(p.value);
8698
8699
  T == null || T.removeEventListener("scroll", ce), window == null || window.removeEventListener("resize", F);
8699
8700
  }
8700
8701
  window == null || window.removeEventListener("keyup", M), window == null || window.removeEventListener("keydown", X);
@@ -8707,11 +8708,11 @@ const Au = ({
8707
8708
  },
8708
8709
  { deep: !0 }
8709
8710
  );
8710
- const { openOnTop: g, menuStyle: $, xCorrect: Q, setMenuPosition: re, getScrollableParent: me, shadowRender: Y } = Au({
8711
- menuRef: b,
8712
- menuRefInner: w,
8711
+ const { openOnTop: b, menuStyle: $, xCorrect: Q, setMenuPosition: re, getScrollableParent: me, shadowRender: Y } = Au({
8712
+ menuRef: w,
8713
+ menuRefInner: _,
8713
8714
  inputRef: u,
8714
- pickerWrapperRef: f,
8715
+ pickerWrapperRef: p,
8715
8716
  inline: N,
8716
8717
  emit: n,
8717
8718
  props: l,
@@ -8723,7 +8724,7 @@ const Au = ({
8723
8724
  emitModelValue: le,
8724
8725
  formatInputValue: te,
8725
8726
  checkBeforeEmit: y
8726
- } = $u(n, l, k), ue = H(
8727
+ } = $u(n, l, g), ue = H(
8727
8728
  () => ({
8728
8729
  dp__main: !0,
8729
8730
  dp__theme_dark: l.dark,
@@ -8743,12 +8744,12 @@ const Au = ({
8743
8744
  }, F = () => {
8744
8745
  var T;
8745
8746
  s.value && re();
8746
- const J = (T = w.value) == null ? void 0 : T.$el.getBoundingClientRect().width;
8747
+ const J = (T = _.value) == null ? void 0 : T.$el.getBoundingClientRect().width;
8747
8748
  W.value = document.body.offsetWidth <= J;
8748
8749
  }, M = (T) => {
8749
- T.key === "Tab" && !N.value.enabled && !l.teleport && ee.value.tabOutClosesMenu && (f.value.contains(document.activeElement) || st()), _.value = T.shiftKey;
8750
+ T.key === "Tab" && !N.value.enabled && !l.teleport && ee.value.tabOutClosesMenu && (p.value.contains(document.activeElement) || st()), k.value = T.shiftKey;
8750
8751
  }, X = (T) => {
8751
- _.value = T.shiftKey;
8752
+ k.value = T.shiftKey;
8752
8753
  }, he = () => {
8753
8754
  !l.disabled && !l.readonly && (Y(ll, l), re(!1), s.value = !0, s.value && n("open"), s.value || ia(), E(l.modelValue));
8754
8755
  }, Re = () => {
@@ -8768,7 +8769,7 @@ const Au = ({
8768
8769
  }, ia = () => {
8769
8770
  h.value.enabled || (i.value = null);
8770
8771
  }, st = () => {
8771
- N.value.enabled || (s.value && (s.value = !1, Q.value = !1, G(!1), P(!1), R(), n("closed"), B.value && E(o.value)), ia(), n("blur"));
8772
+ N.value.enabled || (s.value && (s.value = !1, Q.value = !1, G(!1), P(!1), O(), n("closed"), B.value && E(o.value)), ia(), n("blur"));
8772
8773
  }, ua = (T, J, ae = !1) => {
8773
8774
  if (!T) {
8774
8775
  i.value = null;
@@ -8781,15 +8782,15 @@ const Au = ({
8781
8782
  }, Pa = () => s.value ? st() : he(), za = (T) => {
8782
8783
  i.value = T;
8783
8784
  }, ja = () => {
8784
- h.value.enabled && (k.value = !0, te()), n("focus");
8785
+ h.value.enabled && (g.value = !0, te()), n("focus");
8785
8786
  }, qa = () => {
8786
- if (h.value.enabled && (k.value = !1, E(l.modelValue), D.value)) {
8787
- const T = au(f.value, _.value);
8787
+ if (h.value.enabled && (g.value = !1, E(l.modelValue), D.value)) {
8788
+ const T = au(p.value, k.value);
8788
8789
  T == null || T.focus();
8789
8790
  }
8790
8791
  n("blur");
8791
8792
  }, Ua = (T) => {
8792
- w.value && w.value.updateMonthYear(0, {
8793
+ _.value && _.value.updateMonthYear(0, {
8793
8794
  month: Jn(T.month),
8794
8795
  year: Jn(T.year)
8795
8796
  });
@@ -8797,9 +8798,9 @@ const Au = ({
8797
8798
  E(T ?? l.modelValue);
8798
8799
  }, Qa = (T, J) => {
8799
8800
  var ae;
8800
- (ae = w.value) == null || ae.switchView(T, J);
8801
- }, O = (T) => ee.value.onClickOutside ? ee.value.onClickOutside(T) : st();
8802
- return Qd(b, u, () => O(Pe)), a({
8801
+ (ae = _.value) == null || ae.switchView(T, J);
8802
+ }, R = (T) => ee.value.onClickOutside ? ee.value.onClickOutside(T) : st();
8803
+ return Qd(w, u, () => R(Pe)), a({
8803
8804
  closeMenu: st,
8804
8805
  selectDate: ie,
8805
8806
  clearValue: Re,
@@ -8813,9 +8814,9 @@ const Au = ({
8813
8814
  parseModel: Ga,
8814
8815
  switchView: Qa,
8815
8816
  toggleMenu: Pa
8816
- }), (T, J) => (p(), A("div", {
8817
+ }), (T, J) => (f(), A("div", {
8817
8818
  ref_key: "pickerWrapperRef",
8818
- ref: f,
8819
+ ref: p,
8819
8820
  class: ye(ue.value),
8820
8821
  "data-datepicker-instance": ""
8821
8822
  }, [
@@ -8835,7 +8836,7 @@ const Au = ({
8835
8836
  onClose: st,
8836
8837
  onFocus: ja,
8837
8838
  onBlur: qa,
8838
- onRealBlur: J[1] || (J[1] = (ae) => k.value = !1)
8839
+ onRealBlur: J[1] || (J[1] = (ae) => g.value = !1)
8839
8840
  }), at({ _: 2 }, [
8840
8841
  Se(c(m), (ae, Ce) => ({
8841
8842
  name: ae,
@@ -8844,29 +8845,29 @@ const Au = ({
8844
8845
  ])
8845
8846
  }))
8846
8847
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
8847
- (p(), be(Ba(T.teleport ? Ea : "div"), Qe(rt(K.value)), {
8848
+ (f(), be(Ba(T.teleport ? Ea : "div"), Qe(rt(K.value)), {
8848
8849
  default: fe(() => [
8849
8850
  Ee(lt, {
8850
- name: c(L)(c(g)),
8851
+ name: c(L)(c(b)),
8851
8852
  css: c(V) && !c(N).enabled
8852
8853
  }, {
8853
8854
  default: fe(() => [
8854
- s.value ? (p(), A("div", Fe({
8855
+ s.value ? (f(), A("div", Fe({
8855
8856
  key: 0,
8856
8857
  ref_key: "dpWrapMenuRef",
8857
- ref: b
8858
+ ref: w
8858
8859
  }, Z.value, {
8859
8860
  class: { "dp--menu-wrapper": !c(N).enabled },
8860
8861
  style: c(N).enabled ? void 0 : c($)
8861
8862
  }), [
8862
8863
  Ee(ll, Fe({
8863
8864
  ref_key: "dpMenuRef",
8864
- ref: w
8865
+ ref: _
8865
8866
  }, T.$props, {
8866
8867
  "internal-model-value": c(i),
8867
8868
  "onUpdate:internalModelValue": J[2] || (J[2] = (ae) => In(i) ? i.value = ae : null),
8868
8869
  class: { [ge.value]: !0, "dp--menu-wrapper": T.teleport },
8869
- "open-on-top": c(g),
8870
+ "open-on-top": c(b),
8870
8871
  "no-overlay-focus": d.value,
8871
8872
  collapse: W.value,
8872
8873
  "get-input-rect": j,
@@ -8950,13 +8951,13 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
8950
8951
  }
8951
8952
  return Ue(() => {
8952
8953
  t.currentDate && (l.value = t.currentDate);
8953
- }), (o, v) => (p(), A("div", Zd, [
8954
+ }), (o, v) => (f(), A("div", Zd, [
8954
8955
  Xe(z("p", { class: "rm-datepicker__label" }, ke(o.label), 513), [
8955
8956
  [zt, o.label]
8956
8957
  ]),
8957
8958
  Ee(c(Bn), Fe({
8958
8959
  modelValue: l.value,
8959
- "onUpdate:modelValue": v[0] || (v[0] = (b) => l.value = b),
8960
+ "onUpdate:modelValue": v[0] || (v[0] = (w) => l.value = w),
8960
8961
  "enable-time-picker": !1,
8961
8962
  "auto-apply": "",
8962
8963
  clearable: !!o.currentDate,
@@ -8964,7 +8965,7 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
8964
8965
  "disabled-dates": o.disabledDates
8965
8966
  }, r.value, {
8966
8967
  "onUpdate:modelValue": s,
8967
- onCleared: v[1] || (v[1] = (b) => n("delete"))
8968
+ onCleared: v[1] || (v[1] = (w) => n("delete"))
8968
8969
  }), null, 16, ["modelValue", "clearable", "allowed-dates", "disabled-dates"])
8969
8970
  ]));
8970
8971
  }
@@ -8990,7 +8991,7 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
8990
8991
  a.dynamic && (t.value = !0, setTimeout(() => {
8991
8992
  t.value = !1;
8992
8993
  }, +a.duration));
8993
- }), (l, r) => (p(), A("div", {
8994
+ }), (l, r) => (f(), A("div", {
8994
8995
  class: ye([
8995
8996
  "rm-tooltip",
8996
8997
  `position-${l.position}`,
@@ -9003,7 +9004,7 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
9003
9004
  onMouseout: n
9004
9005
  }, [
9005
9006
  ne(l.$slots, "default"),
9006
- l.label ? (p(), A("div", Kd, [
9007
+ l.label ? (f(), A("div", Kd, [
9007
9008
  z("p", ec, ke(l.label), 1)
9008
9009
  ])) : I("", !0)
9009
9010
  ], 34));
@@ -9020,7 +9021,7 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
9020
9021
  },
9021
9022
  setup(e) {
9022
9023
  const a = e, t = H(() => a.label.trim().replace(/\s+/g, " ").split(" ").map((n) => n[0].toUpperCase()).join("").slice(0, 2));
9023
- return (n, l) => (p(), A("div", {
9024
+ return (n, l) => (f(), A("div", {
9024
9025
  class: ye([
9025
9026
  "rm-avatar",
9026
9027
  {
@@ -9030,7 +9031,7 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
9030
9031
  ])
9031
9032
  }, [
9032
9033
  z("div", tc, [
9033
- n.avatar ? (p(), A("img", {
9034
+ n.avatar ? (f(), A("img", {
9034
9035
  key: 0,
9035
9036
  src: n.avatar,
9036
9037
  class: "rm-avatar__avatar-image",
@@ -9064,10 +9065,10 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
9064
9065
  isLock: { type: Boolean, default: !1 }
9065
9066
  },
9066
9067
  setup(e) {
9067
- return (a, t) => (p(), be(Ea, { to: "body" }, [
9068
+ return (a, t) => (f(), be(Ea, { to: "body" }, [
9068
9069
  Ee(lt, { name: "fade" }, {
9069
9070
  default: fe(() => [
9070
- a.isActive ? Xe((p(), A("div", nc, oc)), [
9071
+ a.isActive ? Xe((f(), A("div", nc, oc)), [
9071
9072
  [c(rl), a.isLock && a.isActive]
9072
9073
  ]) : I("", !0)
9073
9074
  ]),
@@ -9089,67 +9090,70 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
9089
9090
  if (!s.value)
9090
9091
  return;
9091
9092
  const {
9092
- top: u,
9093
- left: k,
9094
- right: f,
9095
- width: D,
9096
- height: _
9097
- } = s.value.getBoundingClientRect(), { innerWidth: W, innerHeight: G } = window;
9098
- n.value = u + _, r.value = D, setTimeout(() => {
9093
+ top: g,
9094
+ left: p,
9095
+ right: D,
9096
+ width: k,
9097
+ height: W
9098
+ } = s.value.getBoundingClientRect(), { innerWidth: G, innerHeight: P } = window;
9099
+ n.value = g + W, r.value = k, setTimeout(() => {
9099
9100
  if (o.value) {
9100
9101
  const {
9101
- top: P,
9102
- width: R,
9103
- height: C
9102
+ top: O,
9103
+ width: C,
9104
+ height: x
9104
9105
  } = o.value.getBoundingClientRect();
9105
- G < P + C && (n.value = u - C);
9106
- const x = W - k - R > 0;
9107
- l.value = x ? k : f - R;
9106
+ P < O + x && (n.value = g - x);
9107
+ const S = G - p - C > 0;
9108
+ l.value = S ? p : D - C;
9108
9109
  }
9109
9110
  }, 0);
9110
9111
  }
9111
- function b() {
9112
+ function w() {
9112
9113
  t.value = !0, v();
9113
- const u = document.querySelector("[data-scroll-target]") ?? document;
9114
+ const g = document.querySelector("[data-scroll-target]") ?? document;
9114
9115
  a = [
9115
- Fn(u, "scroll", v),
9116
+ Fn(g, "scroll", v),
9116
9117
  Fn(window, "resize", v)
9117
9118
  ];
9118
9119
  }
9119
- function w() {
9120
+ function _() {
9120
9121
  setTimeout(() => {
9121
- t.value = !1, a !== null && a.forEach((u) => u());
9122
+ t.value = !1, a !== null && a.forEach((g) => g());
9122
9123
  });
9123
9124
  }
9124
- return (u, k) => Xe((p(), A("div", sc, [
9125
+ function u() {
9126
+ t.value ? _() : w();
9127
+ }
9128
+ return (g, p) => Xe((f(), A("div", sc, [
9125
9129
  z("div", {
9126
9130
  ref_key: "targetRef",
9127
9131
  ref: s,
9128
9132
  "aria-hidden": "true",
9129
9133
  class: "rm-dropdown__trigger",
9130
- onClick: b
9134
+ onClick: u
9131
9135
  }, [
9132
- ne(u.$slots, "trigger")
9136
+ ne(g.$slots, "trigger")
9133
9137
  ], 512),
9134
- (p(), be(Ea, { to: "body" }, [
9135
- Ee(lt, { name: u.transition }, {
9138
+ (f(), be(Ea, { to: "body" }, [
9139
+ Ee(lt, { name: g.transition }, {
9136
9140
  default: fe(() => [
9137
- t.value ? (p(), A("div", {
9141
+ t.value ? (f(), A("div", {
9138
9142
  key: 0,
9139
9143
  ref_key: "dropdownRef",
9140
9144
  ref: o,
9141
9145
  "aria-hidden": "true",
9142
- class: ye(["rm-dropdown__content", u.contentClass]),
9146
+ class: ye(["rm-dropdown__content", g.contentClass]),
9143
9147
  style: tt({
9144
9148
  top: `${n.value}px`,
9145
9149
  left: `${l.value}px`,
9146
9150
  minWidth: `${r.value}px`
9147
9151
  }),
9148
- onClick: k[0] || (k[0] = (f) => !u.manualClose && w())
9152
+ onClick: p[0] || (p[0] = (D) => !g.manualClose && _())
9149
9153
  }, [
9150
- ne(u.$slots, "content", {
9151
- openDropdown: b,
9152
- closeDropdown: w
9154
+ ne(g.$slots, "content", {
9155
+ openDropdown: w,
9156
+ closeDropdown: _
9153
9157
  })
9154
9158
  ], 6)) : I("", !0)
9155
9159
  ]),
@@ -9157,7 +9161,7 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
9157
9161
  }, 8, ["name"])
9158
9162
  ]))
9159
9163
  ])), [
9160
- [c(or), () => !u.manualClose && w()]
9164
+ [c(or), () => !g.manualClose && _()]
9161
9165
  ]);
9162
9166
  }
9163
9167
  });