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