@uniquedj95/vform 1.6.2 → 1.6.3

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.
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var nr = Object.defineProperty;
2
2
  var lr = (e, n, a) => n in e ? nr(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a;
3
3
  var ve = (e, n, a) => lr(e, typeof n != "symbol" ? n + "" : n, a);
4
- import { defineComponent as Ve, ref as X, computed as G, watch as Qe, openBlock as g, createBlock as se, unref as i, withCtx as le, createVNode as Oe, createElementBlock as W, Fragment as be, renderList as Pe, resolveDynamicComponent as ia, createCommentVNode as F, normalizeStyle as ot, createTextVNode as Ye, toDisplayString as Ce, mergeModels as Ct, useModel as $t, reactive as Pa, useSlots as jt, toRef as wa, onMounted as Je, nextTick as ct, onUnmounted as Fa, normalizeClass as Me, mergeProps as Ge, isRef as Wn, createSlots as tt, renderSlot as ce, normalizeProps as Ke, guardReactiveProps as ut, Teleport as rr, Transition as sa, createElementVNode as _e, withModifiers as _a, h as or, render as Qn, useAttrs as ur, onBeforeUpdate as ir, withDirectives as Va, vShow as Ra, withKeys as sr, getCurrentScope as dr, onScopeDispose as cr } from "vue";
5
- import { IonGrid as vr, IonRow as Ea, IonCol as ya, IonButton as Ut, IonInput as Ba, IonLabel as pt, IonText as qa, IonInputPasswordToggle as mr, IonSelect as pr, IonSelectOption as fr, IonIcon as ka, IonChip as hr, IonList as yr, IonItem as gr, IonCheckbox as br, IonInfiniteScroll as wr, IonInfiniteScrollContent as _r, IonTextarea as kr } from "@ionic/vue";
6
- const xa = [
4
+ import { defineComponent as Ve, ref as j, computed as G, watch as Qe, openBlock as g, createBlock as se, unref as i, withCtx as re, createVNode as Se, createElementBlock as W, Fragment as be, renderList as Pe, resolveDynamicComponent as ia, createCommentVNode as F, normalizeStyle as ot, createTextVNode as Ye, toDisplayString as Ce, mergeModels as Ct, useModel as $t, reactive as Ta, useSlots as Xt, toRef as ba, onMounted as Je, nextTick as ct, onUnmounted as Na, normalizeClass as Me, mergeProps as Ge, isRef as Wn, createSlots as tt, renderSlot as ce, normalizeProps as Ke, guardReactiveProps as ut, Teleport as rr, Transition as sa, createElementVNode as we, withModifiers as wa, h as or, render as Qn, useAttrs as ur, onBeforeUpdate as ir, withDirectives as Ia, vShow as Va, withKeys as sr, getCurrentScope as dr, onScopeDispose as cr } from "vue";
5
+ import { IonGrid as vr, IonRow as hn, IonCol as yn, IonButton as Ut, IonInput as Ra, IonLabel as pt, IonText as Ha, IonInputPasswordToggle as mr, IonSelect as pr, IonSelectOption as fr, IonIcon as _a, IonChip as hr, IonList as yr, IonItem as gr, IonCheckbox as br, IonInfiniteScroll as wr, IonInfiniteScrollContent as _r, IonTextarea as kr } from "@ionic/vue";
6
+ const ka = [
7
7
  "January",
8
8
  "February",
9
9
  "March",
@@ -27,8 +27,8 @@ function xr(e, n = "DD/MMM/YYYY") {
27
27
  const t = Vt(a.getDate()), l = a.getMonth() + 1, r = a.getFullYear(), o = Vt(a.getHours()), v = Vt(a.getMinutes()), s = Vt(a.getSeconds()), k = a.getMilliseconds(), m = {
28
28
  DD: t,
29
29
  D: a.getDate().toString(),
30
- MMM: xa[a.getMonth()].slice(0, 3),
31
- MMMM: xa[a.getMonth()],
30
+ MMM: ka[a.getMonth()].slice(0, 3),
31
+ MMMM: ka[a.getMonth()],
32
32
  MM: Vt(l),
33
33
  M: l.toString(),
34
34
  YYYY: r.toString(),
@@ -51,10 +51,10 @@ function xr(e, n = "DD/MMM/YYYY") {
51
51
  function Vt(e) {
52
52
  return e < 10 ? `0${e}` : `${e}`;
53
53
  }
54
- function ln(e, n) {
54
+ function an(e, n) {
55
55
  if (Number.isInteger(parseInt(e)) && Number(e) > 0) {
56
- if (n === "MMMM") return xa[Number(e) - 1];
57
- if (n === "MMM") return xa[Number(e) - 1].slice(0, 3);
56
+ if (n === "MMMM") return ka[Number(e) - 1];
57
+ if (n === "MMM") return ka[Number(e) - 1].slice(0, 3);
58
58
  if (n === "MM") return Vt(Number(e));
59
59
  }
60
60
  return e;
@@ -79,7 +79,7 @@ function Kt(e, n) {
79
79
  const a = pl(e, n);
80
80
  a >= 0 ? n[a].isChecked = !0 : n.push({ ...e, isChecked: !0 });
81
81
  }
82
- function Xn(e, n) {
82
+ function jn(e, n) {
83
83
  const a = pl(e, n);
84
84
  a >= 0 && (n[a].isChecked = !1);
85
85
  }
@@ -104,7 +104,7 @@ const Dr = /* @__PURE__ */ Ve({
104
104
  },
105
105
  emits: ["submit", "clear", "cancel"],
106
106
  setup(e, { expose: n, emit: a }) {
107
- const t = e, l = a, r = X([]), o = X(t.schema), v = G(() => Object.entries(o.value).reduce((_, [h, S]) => (S.value !== void 0 && (typeof S.onChange == "function" ? _[h] = S.onChange(S.value) : _[h] = S.value), _), {})), s = G(() => Object.entries(v.value).reduce((_, [h, S]) => (S !== void 0 && (o.value[h].children !== void 0 && (_[h] = S.map(({ other: E }) => Object.entries(E).reduce((N, [w, I]) => (typeof o.value[h].children[w].computedValue == "function" ? N[w] = o.value[h].children[w].computedValue(I, o.value) : N[w] = I, N), {}))), typeof o.value[h].computedValue == "function" && S !== void 0 && (_[h] = o.value[h].computedValue(S, o.value))), _), {}));
107
+ const t = e, l = a, r = j([]), o = j(t.schema), v = G(() => Object.entries(o.value).reduce((_, [h, S]) => (S.value !== void 0 && (typeof S.onChange == "function" ? _[h] = S.onChange(S.value) : _[h] = S.value), _), {})), s = G(() => Object.entries(v.value).reduce((_, [h, S]) => (S !== void 0 && (o.value[h].children !== void 0 && (_[h] = S.map(({ other: E }) => Object.entries(E).reduce((N, [w, I]) => (typeof o.value[h].children[w].computedValue == "function" ? N[w] = o.value[h].children[w].computedValue(I, o.value) : N[w] = I, N), {}))), typeof o.value[h].computedValue == "function" && S !== void 0 && (_[h] = o.value[h].computedValue(S, o.value))), _), {}));
108
108
  async function k() {
109
109
  const _ = [];
110
110
  for (const h of r.value)
@@ -149,13 +149,13 @@ const Dr = /* @__PURE__ */ Ve({
149
149
  computedData: s.value
150
150
  })
151
151
  }), (_, h) => (g(), se(i(vr), null, {
152
- default: le(() => [
153
- Oe(i(Ea), null, {
154
- default: le(() => [
152
+ default: re(() => [
153
+ Se(i(hn), null, {
154
+ default: re(() => [
155
155
  (g(!0), W(be, null, Pe(Object.keys(o.value), (S) => {
156
156
  var E, N, w, I, C;
157
157
  return g(), W(be, null, [
158
- i(bn)(o.value[S], v.value, s.value) ? (g(), se(i(ya), {
158
+ i(bn)(o.value[S], v.value, s.value) ? (g(), se(i(yn), {
159
159
  key: S,
160
160
  size: ((E = o.value[S].grid) == null ? void 0 : E.xs) ?? "12",
161
161
  "size-sm": (N = o.value[S].grid) == null ? void 0 : N.sm,
@@ -164,7 +164,7 @@ const Dr = /* @__PURE__ */ Ve({
164
164
  "size-xl": (C = o.value[S].grid) == null ? void 0 : C.xl,
165
165
  class: "ion-margin-vertical"
166
166
  }, {
167
- default: le(() => [
167
+ default: re(() => [
168
168
  (g(), se(ia(o.value[S].type), {
169
169
  modelValue: o.value[S],
170
170
  "onUpdate:modelValue": (x) => o.value[S] = x,
@@ -182,18 +182,18 @@ const Dr = /* @__PURE__ */ Ve({
182
182
  ]),
183
183
  _: 1
184
184
  }),
185
- _.hideButtons ? F("", !0) : (g(), se(i(Ea), { key: 0 }, {
186
- default: le(() => [
187
- Oe(i(ya), {
185
+ _.hideButtons ? F("", !0) : (g(), se(i(hn), { key: 0 }, {
186
+ default: re(() => [
187
+ Se(i(yn), {
188
188
  size: "12",
189
189
  style: ot([{ display: "flex" }, { justifyContent: _.buttonPlacement }])
190
190
  }, {
191
- default: le(() => [
191
+ default: re(() => [
192
192
  _.showCancelButton ? (g(), se(i(Ut), {
193
193
  key: 0,
194
194
  onClick: b
195
195
  }, {
196
- default: le(() => [
196
+ default: re(() => [
197
197
  Ye(Ce(_.cancelButtonText ?? "Cancel"), 1)
198
198
  ]),
199
199
  _: 1
@@ -202,7 +202,7 @@ const Dr = /* @__PURE__ */ Ve({
202
202
  key: 1,
203
203
  onClick: f
204
204
  }, {
205
- default: le(() => [
205
+ default: re(() => [
206
206
  Ye(Ce(_.clearButtonText ?? "Reset"), 1)
207
207
  ]),
208
208
  _: 1
@@ -210,13 +210,13 @@ const Dr = /* @__PURE__ */ Ve({
210
210
  (g(!0), W(be, null, Pe(_.customButtons, (S) => (g(), se(i(Ut), {
211
211
  onClick: S.action
212
212
  }, {
213
- default: le(() => [
213
+ default: re(() => [
214
214
  Ye(Ce(S.label), 1)
215
215
  ]),
216
216
  _: 2
217
217
  }, 1032, ["onClick"]))), 256)),
218
- Oe(i(Ut), { onClick: m }, {
219
- default: le(() => [
218
+ Se(i(Ut), { onClick: m }, {
219
+ default: re(() => [
220
220
  Ye(Ce(_.submitButtonText ?? "Submit"), 1)
221
221
  ]),
222
222
  _: 1
@@ -231,7 +231,7 @@ const Dr = /* @__PURE__ */ Ve({
231
231
  _: 1
232
232
  }));
233
233
  }
234
- }), za = /* @__PURE__ */ Ve({
234
+ }), Fa = /* @__PURE__ */ Ve({
235
235
  __name: "BaseInput",
236
236
  props: /* @__PURE__ */ Ct({
237
237
  schema: {},
@@ -242,7 +242,7 @@ const Dr = /* @__PURE__ */ Ve({
242
242
  }),
243
243
  emits: ["update:modelValue"],
244
244
  setup(e, { expose: n }) {
245
- const a = e, t = $t(e, "modelValue"), l = X(null), r = X(t.value.value);
245
+ const a = e, t = $t(e, "modelValue"), l = j(null), r = j(t.value.value);
246
246
  Qe(() => t.value.value, (m) => r.value = m);
247
247
  function o() {
248
248
  r.value = "", t.value.error = "", t.value.value = "";
@@ -269,7 +269,7 @@ const Dr = /* @__PURE__ */ Ve({
269
269
  onValueUpdate: s,
270
270
  onReset: o,
271
271
  getErrors: () => t.value.error
272
- }), (m, d) => (g(), se(i(Ba), {
272
+ }), (m, d) => (g(), se(i(Ra), {
273
273
  ref_key: "inputRef",
274
274
  ref: l,
275
275
  modelValue: r.value,
@@ -293,18 +293,18 @@ const Dr = /* @__PURE__ */ Ve({
293
293
  onIonChange: s,
294
294
  onIonBlur: s
295
295
  }, {
296
- default: le(() => [
296
+ default: re(() => [
297
297
  t.value.label ? (g(), se(i(pt), {
298
298
  key: 0,
299
299
  slot: "label"
300
300
  }, {
301
- default: le(() => [
301
+ default: re(() => [
302
302
  Ye(Ce(t.value.label) + " ", 1),
303
- t.value.required ? (g(), se(i(qa), {
303
+ t.value.required ? (g(), se(i(Ha), {
304
304
  key: 0,
305
305
  color: "danger"
306
306
  }, {
307
- default: le(() => d[1] || (d[1] = [
307
+ default: re(() => d[1] || (d[1] = [
308
308
  Ye("*")
309
309
  ])),
310
310
  _: 1
@@ -316,7 +316,7 @@ const Dr = /* @__PURE__ */ Ve({
316
316
  key: 1,
317
317
  slot: "start"
318
318
  }, {
319
- default: le(() => [
319
+ default: re(() => [
320
320
  Ye(Ce(t.value.prefix), 1)
321
321
  ]),
322
322
  _: 1
@@ -325,7 +325,7 @@ const Dr = /* @__PURE__ */ Ve({
325
325
  key: 2,
326
326
  slot: "end"
327
327
  }, {
328
- default: le(() => [
328
+ default: re(() => [
329
329
  Ye(Ce(t.value.suffix), 1)
330
330
  ]),
331
331
  _: 1
@@ -348,7 +348,7 @@ const Dr = /* @__PURE__ */ Ve({
348
348
  }),
349
349
  emits: ["update:modelValue"],
350
350
  setup(e, { expose: n }) {
351
- const a = e, t = $t(e, "modelValue"), l = X(null);
351
+ const a = e, t = $t(e, "modelValue"), l = j(null);
352
352
  return n({
353
353
  onReset: () => {
354
354
  var r;
@@ -362,7 +362,7 @@ const Dr = /* @__PURE__ */ Ve({
362
362
  var r;
363
363
  return (r = l.value) == null ? void 0 : r.getErrors();
364
364
  }
365
- }), (r, o) => (g(), se(za, {
365
+ }), (r, o) => (g(), se(Fa, {
366
366
  modelValue: t.value,
367
367
  "onUpdate:modelValue": o[0] || (o[0] = (v) => t.value = v),
368
368
  type: "text",
@@ -437,11 +437,11 @@ function gl(e) {
437
437
  const o = aa(r);
438
438
  return n.getTime() >= l.getTime() ? a + 1 : n.getTime() >= o.getTime() ? a : a - 1;
439
439
  }
440
- function jn(e) {
440
+ function Xn(e) {
441
441
  const n = fe(e);
442
442
  return n.setHours(0, 0, 0, 0), n;
443
443
  }
444
- function La(e) {
444
+ function Ea(e) {
445
445
  const n = fe(e), a = new Date(
446
446
  Date.UTC(
447
447
  n.getFullYear(),
@@ -456,7 +456,7 @@ function La(e) {
456
456
  return a.setUTCFullYear(n.getFullYear()), +e - +a;
457
457
  }
458
458
  function bl(e, n) {
459
- const a = jn(e), t = jn(n), l = +a - La(a), r = +t - La(t);
459
+ const a = Xn(e), t = Xn(n), l = +a - Ea(a), r = +t - Ea(t);
460
460
  return Math.round((l - r) / Ar);
461
461
  }
462
462
  function Yr(e) {
@@ -477,7 +477,7 @@ function Gn(e, n) {
477
477
  function wl(e) {
478
478
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
479
479
  }
480
- function ga(e) {
480
+ function ya(e) {
481
481
  if (!wl(e) && typeof e != "number")
482
482
  return !1;
483
483
  const n = fe(e);
@@ -530,7 +530,7 @@ function kl(e) {
530
530
  const n = fe(e), a = n.getFullYear();
531
531
  return n.setFullYear(a + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
532
532
  }
533
- function Ma(e) {
533
+ function xa(e) {
534
534
  const n = fe(e), a = Ae(e, 0);
535
535
  return a.setFullYear(n.getFullYear(), 0, 1), a.setHours(0, 0, 0, 0), a;
536
536
  }
@@ -610,7 +610,7 @@ const Lr = {
610
610
  const l = Lr[e];
611
611
  return typeof l == "string" ? t = l : n === 1 ? t = l.one : t = l.other.replace("{{count}}", n.toString()), a != null && a.addSuffix ? a.comparison && a.comparison > 0 ? "in " + t : t + " ago" : t;
612
612
  };
613
- function rn(e) {
613
+ function nn(e) {
614
614
  return (n = {}) => {
615
615
  const a = n.width ? String(n.width) : e.defaultWidth;
616
616
  return e.formats[a] || e.formats[e.defaultWidth];
@@ -632,15 +632,15 @@ const Hr = {
632
632
  medium: "{{date}}, {{time}}",
633
633
  short: "{{date}}, {{time}}"
634
634
  }, zr = {
635
- date: rn({
635
+ date: nn({
636
636
  formats: Hr,
637
637
  defaultWidth: "full"
638
638
  }),
639
- time: rn({
639
+ time: nn({
640
640
  formats: Fr,
641
641
  defaultWidth: "full"
642
642
  }),
643
- dateTime: rn({
643
+ dateTime: nn({
644
644
  formats: qr,
645
645
  defaultWidth: "full"
646
646
  })
@@ -671,11 +671,11 @@ const Qr = {
671
671
  narrow: ["B", "A"],
672
672
  abbreviated: ["BC", "AD"],
673
673
  wide: ["Before Christ", "Anno Domini"]
674
- }, Xr = {
674
+ }, jr = {
675
675
  narrow: ["1", "2", "3", "4"],
676
676
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
677
677
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
678
- }, jr = {
678
+ }, Xr = {
679
679
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
680
680
  abbreviated: [
681
681
  "Jan",
@@ -799,12 +799,12 @@ const Qr = {
799
799
  defaultWidth: "wide"
800
800
  }),
801
801
  quarter: pa({
802
- values: Xr,
802
+ values: jr,
803
803
  defaultWidth: "wide",
804
804
  argumentCallback: (e) => e - 1
805
805
  }),
806
806
  month: pa({
807
- values: jr,
807
+ values: Xr,
808
808
  defaultWidth: "wide"
809
809
  }),
810
810
  day: pa({
@@ -976,7 +976,7 @@ const lo = /^(\d+)(th|st|nd|rd)?/i, ro = /\d+/i, oo = {
976
976
  };
977
977
  function go(e) {
978
978
  const n = fe(e);
979
- return bl(n, Ma(n)) + 1;
979
+ return bl(n, xa(n)) + 1;
980
980
  }
981
981
  function An(e) {
982
982
  const n = fe(e), a = +aa(n) - +Yr(n);
@@ -1000,7 +1000,7 @@ function $n(e, n) {
1000
1000
  const a = fe(e), t = +bt(a, n) - +bo(a, n);
1001
1001
  return Math.round(t / hl) + 1;
1002
1002
  }
1003
- function Se(e, n) {
1003
+ function Oe(e, n) {
1004
1004
  const a = e < 0 ? "-" : "", t = Math.abs(e).toString().padStart(n, "0");
1005
1005
  return a + t;
1006
1006
  }
@@ -1008,16 +1008,16 @@ const Yt = {
1008
1008
  // Year
1009
1009
  y(e, n) {
1010
1010
  const a = e.getFullYear(), t = a > 0 ? a : 1 - a;
1011
- return Se(n === "yy" ? t % 100 : t, n.length);
1011
+ return Oe(n === "yy" ? t % 100 : t, n.length);
1012
1012
  },
1013
1013
  // Month
1014
1014
  M(e, n) {
1015
1015
  const a = e.getMonth();
1016
- return n === "M" ? String(a + 1) : Se(a + 1, 2);
1016
+ return n === "M" ? String(a + 1) : Oe(a + 1, 2);
1017
1017
  },
1018
1018
  // Day of the month
1019
1019
  d(e, n) {
1020
- return Se(e.getDate(), n.length);
1020
+ return Oe(e.getDate(), n.length);
1021
1021
  },
1022
1022
  // AM or PM
1023
1023
  a(e, n) {
@@ -1037,26 +1037,26 @@ const Yt = {
1037
1037
  },
1038
1038
  // Hour [1-12]
1039
1039
  h(e, n) {
1040
- return Se(e.getHours() % 12 || 12, n.length);
1040
+ return Oe(e.getHours() % 12 || 12, n.length);
1041
1041
  },
1042
1042
  // Hour [0-23]
1043
1043
  H(e, n) {
1044
- return Se(e.getHours(), n.length);
1044
+ return Oe(e.getHours(), n.length);
1045
1045
  },
1046
1046
  // Minute
1047
1047
  m(e, n) {
1048
- return Se(e.getMinutes(), n.length);
1048
+ return Oe(e.getMinutes(), n.length);
1049
1049
  },
1050
1050
  // Second
1051
1051
  s(e, n) {
1052
- return Se(e.getSeconds(), n.length);
1052
+ return Oe(e.getSeconds(), n.length);
1053
1053
  },
1054
1054
  // Fraction of second
1055
1055
  S(e, n) {
1056
1056
  const a = n.length, t = e.getMilliseconds(), l = Math.trunc(
1057
1057
  t * Math.pow(10, a - 3)
1058
1058
  );
1059
- return Se(l, n.length);
1059
+ return Oe(l, n.length);
1060
1060
  }
1061
1061
  }, Jt = {
1062
1062
  am: "am",
@@ -1096,14 +1096,14 @@ const Yt = {
1096
1096
  const l = Cn(e, t), r = l > 0 ? l : 1 - l;
1097
1097
  if (n === "YY") {
1098
1098
  const o = r % 100;
1099
- return Se(o, 2);
1099
+ return Oe(o, 2);
1100
1100
  }
1101
- return n === "Yo" ? a.ordinalNumber(r, { unit: "year" }) : Se(r, n.length);
1101
+ return n === "Yo" ? a.ordinalNumber(r, { unit: "year" }) : Oe(r, n.length);
1102
1102
  },
1103
1103
  // ISO week-numbering year
1104
1104
  R: function(e, n) {
1105
1105
  const a = gl(e);
1106
- return Se(a, n.length);
1106
+ return Oe(a, n.length);
1107
1107
  },
1108
1108
  // Extended year. This is a single number designating the year of this calendar system.
1109
1109
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -1116,7 +1116,7 @@ const Yt = {
1116
1116
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
1117
1117
  u: function(e, n) {
1118
1118
  const a = e.getFullYear();
1119
- return Se(a, n.length);
1119
+ return Oe(a, n.length);
1120
1120
  },
1121
1121
  // Quarter
1122
1122
  Q: function(e, n, a) {
@@ -1125,7 +1125,7 @@ const Yt = {
1125
1125
  case "Q":
1126
1126
  return String(t);
1127
1127
  case "QQ":
1128
- return Se(t, 2);
1128
+ return Oe(t, 2);
1129
1129
  case "Qo":
1130
1130
  return a.ordinalNumber(t, { unit: "quarter" });
1131
1131
  case "QQQ":
@@ -1153,7 +1153,7 @@ const Yt = {
1153
1153
  case "q":
1154
1154
  return String(t);
1155
1155
  case "qq":
1156
- return Se(t, 2);
1156
+ return Oe(t, 2);
1157
1157
  case "qo":
1158
1158
  return a.ordinalNumber(t, { unit: "quarter" });
1159
1159
  case "qqq":
@@ -1205,7 +1205,7 @@ const Yt = {
1205
1205
  case "L":
1206
1206
  return String(t + 1);
1207
1207
  case "LL":
1208
- return Se(t + 1, 2);
1208
+ return Oe(t + 1, 2);
1209
1209
  case "Lo":
1210
1210
  return a.ordinalNumber(t + 1, { unit: "month" });
1211
1211
  case "LLL":
@@ -1226,12 +1226,12 @@ const Yt = {
1226
1226
  // Local week of year
1227
1227
  w: function(e, n, a, t) {
1228
1228
  const l = $n(e, t);
1229
- return n === "wo" ? a.ordinalNumber(l, { unit: "week" }) : Se(l, n.length);
1229
+ return n === "wo" ? a.ordinalNumber(l, { unit: "week" }) : Oe(l, n.length);
1230
1230
  },
1231
1231
  // ISO week of year
1232
1232
  I: function(e, n, a) {
1233
1233
  const t = An(e);
1234
- return n === "Io" ? a.ordinalNumber(t, { unit: "week" }) : Se(t, n.length);
1234
+ return n === "Io" ? a.ordinalNumber(t, { unit: "week" }) : Oe(t, n.length);
1235
1235
  },
1236
1236
  // Day of the month
1237
1237
  d: function(e, n, a) {
@@ -1240,7 +1240,7 @@ const Yt = {
1240
1240
  // Day of year
1241
1241
  D: function(e, n, a) {
1242
1242
  const t = go(e);
1243
- return n === "Do" ? a.ordinalNumber(t, { unit: "dayOfYear" }) : Se(t, n.length);
1243
+ return n === "Do" ? a.ordinalNumber(t, { unit: "dayOfYear" }) : Oe(t, n.length);
1244
1244
  },
1245
1245
  // Day of week
1246
1246
  E: function(e, n, a) {
@@ -1278,7 +1278,7 @@ const Yt = {
1278
1278
  case "e":
1279
1279
  return String(r);
1280
1280
  case "ee":
1281
- return Se(r, 2);
1281
+ return Oe(r, 2);
1282
1282
  case "eo":
1283
1283
  return a.ordinalNumber(r, { unit: "day" });
1284
1284
  case "eee":
@@ -1311,7 +1311,7 @@ const Yt = {
1311
1311
  case "c":
1312
1312
  return String(r);
1313
1313
  case "cc":
1314
- return Se(r, n.length);
1314
+ return Oe(r, n.length);
1315
1315
  case "co":
1316
1316
  return a.ordinalNumber(r, { unit: "day" });
1317
1317
  case "ccc":
@@ -1344,7 +1344,7 @@ const Yt = {
1344
1344
  case "i":
1345
1345
  return String(l);
1346
1346
  case "ii":
1347
- return Se(l, n.length);
1347
+ return Oe(l, n.length);
1348
1348
  case "io":
1349
1349
  return a.ordinalNumber(l, { unit: "day" });
1350
1350
  case "iii":
@@ -1467,12 +1467,12 @@ const Yt = {
1467
1467
  // Hour [0-11]
1468
1468
  K: function(e, n, a) {
1469
1469
  const t = e.getHours() % 12;
1470
- return n === "Ko" ? a.ordinalNumber(t, { unit: "hour" }) : Se(t, n.length);
1470
+ return n === "Ko" ? a.ordinalNumber(t, { unit: "hour" }) : Oe(t, n.length);
1471
1471
  },
1472
1472
  // Hour [1-24]
1473
1473
  k: function(e, n, a) {
1474
1474
  let t = e.getHours();
1475
- return t === 0 && (t = 24), n === "ko" ? a.ordinalNumber(t, { unit: "hour" }) : Se(t, n.length);
1475
+ return t === 0 && (t = 24), n === "ko" ? a.ordinalNumber(t, { unit: "hour" }) : Oe(t, n.length);
1476
1476
  },
1477
1477
  // Minute
1478
1478
  m: function(e, n, a) {
@@ -1547,23 +1547,23 @@ const Yt = {
1547
1547
  // Seconds timestamp
1548
1548
  t: function(e, n, a) {
1549
1549
  const t = Math.trunc(e.getTime() / 1e3);
1550
- return Se(t, n.length);
1550
+ return Oe(t, n.length);
1551
1551
  },
1552
1552
  // Milliseconds timestamp
1553
1553
  T: function(e, n, a) {
1554
1554
  const t = e.getTime();
1555
- return Se(t, n.length);
1555
+ return Oe(t, n.length);
1556
1556
  }
1557
1557
  };
1558
1558
  function el(e, n = "") {
1559
1559
  const a = e > 0 ? "-" : "+", t = Math.abs(e), l = Math.trunc(t / 60), r = t % 60;
1560
- return r === 0 ? a + String(l) : a + String(l) + n + Se(r, 2);
1560
+ return r === 0 ? a + String(l) : a + String(l) + n + Oe(r, 2);
1561
1561
  }
1562
1562
  function tl(e, n) {
1563
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + Se(Math.abs(e) / 60, 2) : qt(e, n);
1563
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + Oe(Math.abs(e) / 60, 2) : qt(e, n);
1564
1564
  }
1565
1565
  function qt(e, n = "") {
1566
- const a = e > 0 ? "-" : "+", t = Math.abs(e), l = Se(Math.trunc(t / 60), 2), r = Se(t % 60, 2);
1566
+ const a = e > 0 ? "-" : "+", t = Math.abs(e), l = Oe(Math.trunc(t / 60), 2), r = Oe(t % 60, 2);
1567
1567
  return a + l + n + r;
1568
1568
  }
1569
1569
  const al = (e, n) => {
@@ -1633,7 +1633,7 @@ const Do = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, To = /P+p+|P
1633
1633
  function Dt(e, n, a) {
1634
1634
  var m, d, f, b, _, h, S, E;
1635
1635
  const t = Gt(), l = (a == null ? void 0 : a.locale) ?? t.locale ?? Ml, r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((d = (m = a == null ? void 0 : a.locale) == null ? void 0 : m.options) == null ? void 0 : d.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((b = (f = t.locale) == null ? void 0 : f.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, o = (a == null ? void 0 : a.weekStartsOn) ?? ((h = (_ = a == null ? void 0 : a.locale) == null ? void 0 : _.options) == null ? void 0 : h.weekStartsOn) ?? t.weekStartsOn ?? ((E = (S = t.locale) == null ? void 0 : S.options) == null ? void 0 : E.weekStartsOn) ?? 0, v = fe(e);
1636
- if (!ga(v))
1636
+ if (!ya(v))
1637
1637
  throw new RangeError("Invalid time value");
1638
1638
  let s = n.match(To).map((N) => {
1639
1639
  const w = N[0];
@@ -1700,14 +1700,14 @@ function De(e) {
1700
1700
  function na(e) {
1701
1701
  return fe(e).getSeconds();
1702
1702
  }
1703
- function we(e) {
1703
+ function _e(e) {
1704
1704
  return fe(e).getFullYear();
1705
1705
  }
1706
1706
  function la(e, n) {
1707
1707
  const a = fe(e), t = fe(n);
1708
1708
  return a.getTime() > t.getTime();
1709
1709
  }
1710
- function Da(e, n) {
1710
+ function Ma(e, n) {
1711
1711
  const a = fe(e), t = fe(n);
1712
1712
  return +a < +t;
1713
1713
  }
@@ -1889,7 +1889,7 @@ function He(e, n) {
1889
1889
  return Le(new RegExp("^\\d{1," + e + "}"), n);
1890
1890
  }
1891
1891
  }
1892
- function Na(e, n) {
1892
+ function Ba(e, n) {
1893
1893
  switch (e) {
1894
1894
  case 1:
1895
1895
  return Le(ze.singleDigitSigned, n);
@@ -2057,7 +2057,7 @@ class Fo extends $e {
2057
2057
  ]);
2058
2058
  }
2059
2059
  parse(a, t) {
2060
- return Na(t === "R" ? 4 : t.length, a);
2060
+ return Ba(t === "R" ? 4 : t.length, a);
2061
2061
  }
2062
2062
  set(a, t, l) {
2063
2063
  const r = Ae(a, 0);
@@ -2071,7 +2071,7 @@ class qo extends $e {
2071
2071
  ve(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
2072
2072
  }
2073
2073
  parse(a, t) {
2074
- return Na(t === "u" ? 4 : t.length, a);
2074
+ return Ba(t === "u" ? 4 : t.length, a);
2075
2075
  }
2076
2076
  set(a, t, l) {
2077
2077
  return a.setFullYear(l, 0, 1), a.setHours(0, 0, 0, 0), a;
@@ -2325,11 +2325,11 @@ class Qo extends $e {
2325
2325
  return a.setMonth(l, 1), a.setHours(0, 0, 0, 0), a;
2326
2326
  }
2327
2327
  }
2328
- function Xo(e, n, a) {
2328
+ function jo(e, n, a) {
2329
2329
  const t = fe(e), l = $n(t, a) - n;
2330
2330
  return t.setDate(t.getDate() - l * 7), t;
2331
2331
  }
2332
- class jo extends $e {
2332
+ class Xo extends $e {
2333
2333
  constructor() {
2334
2334
  super(...arguments);
2335
2335
  ve(this, "priority", 100);
@@ -2363,7 +2363,7 @@ class jo extends $e {
2363
2363
  return t >= 1 && t <= 53;
2364
2364
  }
2365
2365
  set(a, t, l, r) {
2366
- return bt(Xo(a, l, r), r);
2366
+ return bt(jo(a, l, r), r);
2367
2367
  }
2368
2368
  }
2369
2369
  function Go(e, n) {
@@ -3078,7 +3078,7 @@ class yu extends $e {
3078
3078
  set(a, t, l) {
3079
3079
  return t.timestampIsSet ? a : Ae(
3080
3080
  a,
3081
- a.getTime() - La(a) - l
3081
+ a.getTime() - Ea(a) - l
3082
3082
  );
3083
3083
  }
3084
3084
  }
@@ -3115,7 +3115,7 @@ class gu extends $e {
3115
3115
  set(a, t, l) {
3116
3116
  return t.timestampIsSet ? a : Ae(
3117
3117
  a,
3118
- a.getTime() - La(a) - l
3118
+ a.getTime() - Ea(a) - l
3119
3119
  );
3120
3120
  }
3121
3121
  }
@@ -3155,7 +3155,7 @@ const _u = {
3155
3155
  q: new Uo(),
3156
3156
  M: new Wo(),
3157
3157
  L: new Qo(),
3158
- w: new jo(),
3158
+ w: new Xo(),
3159
3159
  I: new Ko(),
3160
3160
  d: new eu(),
3161
3161
  D: new tu(),
@@ -3213,15 +3213,15 @@ function xn(e, n, a, t) {
3213
3213
  `The format string mustn't contain \`${y}\` and any other token at the same time`
3214
3214
  );
3215
3215
  d.push({ token: z, fullToken: y });
3216
- const re = H.run(
3216
+ const le = H.run(
3217
3217
  e,
3218
3218
  y,
3219
3219
  r.match,
3220
3220
  s
3221
3221
  );
3222
- if (!re)
3222
+ if (!le)
3223
3223
  return Ae(a, NaN);
3224
- k.push(re.setter), e = re.rest;
3224
+ k.push(le.setter), e = le.rest;
3225
3225
  } else {
3226
3226
  if (z.match(Pu))
3227
3227
  throw new RangeError(
@@ -3322,16 +3322,16 @@ function da() {
3322
3322
  ...e
3323
3323
  },
3324
3324
  [
3325
- _e("path", {
3325
+ we("path", {
3326
3326
  d: "M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"
3327
3327
  }),
3328
- _e("path", {
3328
+ we("path", {
3329
3329
  d: "M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"
3330
3330
  }),
3331
- _e("path", {
3331
+ we("path", {
3332
3332
  d: "M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"
3333
3333
  }),
3334
- _e("path", {
3334
+ we("path", {
3335
3335
  d: "M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"
3336
3336
  })
3337
3337
  ]
@@ -3352,10 +3352,10 @@ function Rl() {
3352
3352
  role: "img"
3353
3353
  },
3354
3354
  [
3355
- _e("path", {
3355
+ we("path", {
3356
3356
  d: "M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"
3357
3357
  }),
3358
- _e("path", {
3358
+ we("path", {
3359
3359
  d: "M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"
3360
3360
  })
3361
3361
  ]
@@ -3376,7 +3376,7 @@ function Yn() {
3376
3376
  role: "img"
3377
3377
  },
3378
3378
  [
3379
- _e("path", {
3379
+ we("path", {
3380
3380
  d: "M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"
3381
3381
  })
3382
3382
  ]
@@ -3397,7 +3397,7 @@ function In() {
3397
3397
  role: "img"
3398
3398
  },
3399
3399
  [
3400
- _e("path", {
3400
+ we("path", {
3401
3401
  d: "M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"
3402
3402
  })
3403
3403
  ]
@@ -3418,10 +3418,10 @@ function Vn() {
3418
3418
  role: "img"
3419
3419
  },
3420
3420
  [
3421
- _e("path", {
3421
+ we("path", {
3422
3422
  d: "M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"
3423
3423
  }),
3424
- _e("path", {
3424
+ we("path", {
3425
3425
  d: "M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"
3426
3426
  })
3427
3427
  ]
@@ -3442,7 +3442,7 @@ function Rn() {
3442
3442
  role: "img"
3443
3443
  },
3444
3444
  [
3445
- _e("path", {
3445
+ we("path", {
3446
3446
  d: "M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"
3447
3447
  })
3448
3448
  ]
@@ -3463,7 +3463,7 @@ function En() {
3463
3463
  role: "img"
3464
3464
  },
3465
3465
  [
3466
- _e("path", {
3466
+ we("path", {
3467
3467
  d: "M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"
3468
3468
  })
3469
3469
  ]
@@ -3536,13 +3536,13 @@ const Eu = (e, n, a) => {
3536
3536
  value: o
3537
3537
  };
3538
3538
  });
3539
- }, Bu = (e) => [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11][e], Xe = (e) => {
3539
+ }, Bu = (e) => [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11][e], je = (e) => {
3540
3540
  const n = i(e);
3541
3541
  return n != null && n.$el ? n == null ? void 0 : n.$el : n;
3542
3542
  }, Lu = (e) => ({ type: "dot", ...e ?? {} }), Bl = (e) => Array.isArray(e) ? !!e[0] && !!e[1] : !1, Nn = {
3543
3543
  prop: (e) => `"${e}" prop must be enabled!`,
3544
3544
  dateArr: (e) => `You need to use array as "model-value" binding in order to support "${e}"`
3545
- }, je = (e) => e, rl = (e) => e === 0 ? e : !e || isNaN(+e) ? null : +e, ol = (e) => e === null, Ll = (e) => {
3545
+ }, Xe = (e) => e, rl = (e) => e === 0 ? e : !e || isNaN(+e) ? null : +e, ol = (e) => e === null, Ll = (e) => {
3546
3546
  if (e)
3547
3547
  return [...e.querySelectorAll("input, button, select, textarea, a[href]")][0];
3548
3548
  }, Nu = (e) => {
@@ -3552,7 +3552,7 @@ const Eu = (e, n, a) => {
3552
3552
  n.push(a(l));
3553
3553
  }
3554
3554
  return n;
3555
- }, Ta = (e, n, a) => {
3555
+ }, Da = (e, n, a) => {
3556
3556
  const t = a != null, l = n != null;
3557
3557
  if (!t && !l) return !1;
3558
3558
  const r = +a, o = +n;
@@ -3592,7 +3592,7 @@ function Fu(e, n) {
3592
3592
  if (t >= 0 && (n ? t - 1 >= 0 : t + 1 <= a.length))
3593
3593
  return a[t + (n ? -1 : 1)];
3594
3594
  }
3595
- const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n}"]`), Nl = (e, n) => new Intl.NumberFormat(n, { useGrouping: !1, style: "decimal" }).format(e), Hn = (e) => Dt(e, "dd-MM-yyyy"), on = (e) => Array.isArray(e), Ha = (e, n) => n.get(Hn(e)), qu = (e, n) => e ? n ? n instanceof Map ? !!Ha(e, n) : n(K(e)) : !1 : !0, lt = (e, n, a = !1, t) => {
3595
+ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n}"]`), Nl = (e, n) => new Intl.NumberFormat(n, { useGrouping: !1, style: "decimal" }).format(e), Hn = (e) => Dt(e, "dd-MM-yyyy"), ln = (e) => Array.isArray(e), La = (e, n) => n.get(Hn(e)), qu = (e, n) => e ? n ? n instanceof Map ? !!La(e, n) : n(K(e)) : !1 : !0, lt = (e, n, a = !1, t) => {
3596
3596
  if (e.key === Ee.enter || e.key === Ee.space)
3597
3597
  return a && e.preventDefault(), n();
3598
3598
  if (t) return t(e);
@@ -3600,7 +3600,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3600
3600
  (e) => navigator.userAgent.includes(e)
3601
3601
  ) || navigator.userAgent.includes("Mac") && "ontouchend" in document, il = (e, n, a, t, l, r) => {
3602
3602
  const o = xn(e, n.slice(0, e.length), /* @__PURE__ */ new Date(), { locale: r });
3603
- return ga(o) && wl(o) ? t || l ? o : Ie(o, {
3603
+ return ya(o) && wl(o) ? t || l ? o : Ie(o, {
3604
3604
  hours: +a.hours,
3605
3605
  minutes: +(a == null ? void 0 : a.minutes),
3606
3606
  seconds: +(a == null ? void 0 : a.seconds),
@@ -3638,38 +3638,38 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3638
3638
  }, Bt = (e, n, a, t) => {
3639
3639
  let l = e ? K(e) : K();
3640
3640
  return (n || n === 0) && (l = $u(l, +n)), (a || a === 0) && (l = Ou(l, +a)), (t || t === 0) && (l = Il(l, +t)), Yl(l, 0);
3641
- }, Ne = (e, n) => !e || !n ? !1 : Da(rt(e), rt(n)), Te = (e, n) => !e || !n ? !1 : ta(rt(e), rt(n)), qe = (e, n) => !e || !n ? !1 : la(rt(e), rt(n)), Ua = (e, n, a) => e != null && e[0] && e != null && e[1] ? qe(a, e[0]) && Ne(a, e[1]) : e != null && e[0] && n ? qe(a, e[0]) && Ne(a, n) || Ne(a, e[0]) && qe(a, n) : !1, yt = (e) => {
3641
+ }, Ne = (e, n) => !e || !n ? !1 : Ma(rt(e), rt(n)), Te = (e, n) => !e || !n ? !1 : ta(rt(e), rt(n)), qe = (e, n) => !e || !n ? !1 : la(rt(e), rt(n)), qa = (e, n, a) => e != null && e[0] && e != null && e[1] ? qe(a, e[0]) && Ne(a, e[1]) : e != null && e[0] && n ? qe(a, e[0]) && Ne(a, n) || Ne(a, e[0]) && qe(a, n) : !1, yt = (e) => {
3642
3642
  const n = Ie(new Date(e), { date: 1 });
3643
3643
  return rt(n);
3644
- }, un = (e, n, a) => n && (a || a === 0) ? Object.fromEntries(
3644
+ }, rn = (e, n, a) => n && (a || a === 0) ? Object.fromEntries(
3645
3645
  ["hours", "minutes", "seconds"].map((t) => t === n ? [t, a] : [t, isNaN(+e[t]) ? void 0 : +e[t]])
3646
3646
  ) : {
3647
3647
  hours: isNaN(+e.hours) ? void 0 : +e.hours,
3648
3648
  minutes: isNaN(+e.minutes) ? void 0 : +e.minutes,
3649
3649
  seconds: isNaN(+e.seconds) ? void 0 : +e.seconds
3650
- }, Xt = (e) => ({
3650
+ }, jt = (e) => ({
3651
3651
  hours: At(e),
3652
3652
  minutes: Lt(e),
3653
3653
  seconds: na(e)
3654
3654
  }), Hl = (e, n) => {
3655
3655
  if (n) {
3656
- const a = we(K(n));
3656
+ const a = _e(K(n));
3657
3657
  if (a > e) return 12;
3658
3658
  if (a === e) return De(K(n));
3659
3659
  }
3660
3660
  }, Fl = (e, n) => {
3661
3661
  if (n) {
3662
- const a = we(K(n));
3662
+ const a = _e(K(n));
3663
3663
  return a < e ? -1 : a === e ? De(K(n)) : void 0;
3664
3664
  }
3665
3665
  }, ua = (e) => {
3666
- if (e) return we(K(e));
3666
+ if (e) return _e(K(e));
3667
3667
  }, ql = (e, n) => {
3668
3668
  const a = qe(e, n) ? n : e, t = qe(n, e) ? n : e;
3669
3669
  return _l({ start: a, end: t });
3670
3670
  }, Wu = (e) => {
3671
3671
  const n = gt(e, 1);
3672
- return { month: De(n), year: we(n) };
3672
+ return { month: De(n), year: _e(n) };
3673
3673
  }, Tt = (e, n) => {
3674
3674
  const a = bt(e, { weekStartsOn: +n }), t = xl(e, { weekStartsOn: +n });
3675
3675
  return [a, t];
@@ -3685,40 +3685,40 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3685
3685
  return (n || n === 0) && (t = Sl(t, n)), a && (t = Mt(t, a)), t;
3686
3686
  }, Ul = (e, n, a, t, l) => {
3687
3687
  if (!t || l && !n || !l && !a) return !1;
3688
- const r = l ? gt(e, 1) : ra(e, 1), o = [De(r), we(r)];
3689
- return l ? !Xu(...o, n) : !Qu(...o, a);
3690
- }, Qu = (e, n, a) => Ne(...Rt(a, e, n)) || Te(...Rt(a, e, n)), Xu = (e, n, a) => qe(...Rt(a, e, n)) || Te(...Rt(a, e, n)), Wl = (e, n, a, t, l, r, o) => {
3688
+ const r = l ? gt(e, 1) : ra(e, 1), o = [De(r), _e(r)];
3689
+ return l ? !ju(...o, n) : !Qu(...o, a);
3690
+ }, Qu = (e, n, a) => Ne(...Rt(a, e, n)) || Te(...Rt(a, e, n)), ju = (e, n, a) => qe(...Rt(a, e, n)) || Te(...Rt(a, e, n)), Wl = (e, n, a, t, l, r, o) => {
3691
3691
  if (typeof n == "function" && !o) return n(e);
3692
3692
  const v = a ? { locale: a } : void 0;
3693
3693
  return Array.isArray(e) ? `${Dt(e[0], r, v)}${l && !e[1] ? "" : t}${e[1] ? Dt(e[1], r, v) : ""}` : Dt(e, r, v);
3694
3694
  }, Zt = (e) => {
3695
3695
  if (e) return null;
3696
3696
  throw new Error(Nn.prop("partial-range"));
3697
- }, Ya = (e, n) => {
3697
+ }, Sa = (e, n) => {
3698
3698
  if (n) return e();
3699
3699
  throw new Error(Nn.prop("range"));
3700
- }, Tn = (e) => Array.isArray(e) ? ga(e[0]) && (e[1] ? ga(e[1]) : !0) : e ? ga(e) : !1, ju = (e, n) => Ie(n ?? K(), {
3700
+ }, Tn = (e) => Array.isArray(e) ? ya(e[0]) && (e[1] ? ya(e[1]) : !0) : e ? ya(e) : !1, Xu = (e, n) => Ie(n ?? K(), {
3701
3701
  hours: +e.hours || 0,
3702
3702
  minutes: +e.minutes || 0,
3703
3703
  seconds: +e.seconds || 0
3704
- }), sn = (e, n, a, t) => {
3704
+ }), on = (e, n, a, t) => {
3705
3705
  if (!e) return !0;
3706
3706
  if (t) {
3707
- const l = a === "max" ? Da(e, n) : la(e, n), r = { seconds: 0, milliseconds: 0 };
3707
+ const l = a === "max" ? Ma(e, n) : la(e, n), r = { seconds: 0, milliseconds: 0 };
3708
3708
  return l || ta(Ie(e, r), Ie(n, r));
3709
3709
  }
3710
3710
  return a === "max" ? e.getTime() <= n.getTime() : e.getTime() >= n.getTime();
3711
- }, dn = (e, n, a) => e ? ju(e, n) : K(a ?? n), sl = (e, n, a, t, l) => {
3711
+ }, un = (e, n, a) => e ? Xu(e, n) : K(a ?? n), sl = (e, n, a, t, l) => {
3712
3712
  if (Array.isArray(t)) {
3713
- const o = dn(e, t[0], n), v = dn(e, t[1], n);
3714
- return sn(t[0], o, a, !!n) && sn(t[1], v, a, !!n) && l;
3713
+ const o = un(e, t[0], n), v = un(e, t[1], n);
3714
+ return on(t[0], o, a, !!n) && on(t[1], v, a, !!n) && l;
3715
3715
  }
3716
- const r = dn(e, t, n);
3717
- return sn(t, r, a, !!n) && l;
3718
- }, cn = (e) => Ie(K(), Xt(e)), Gu = (e, n) => e instanceof Map ? Array.from(e.values()).filter((a) => we(K(a)) === n).map((a) => De(a)) : [], Ql = (e, n, a) => typeof e == "function" ? e({ month: n, year: a }) : !!e.months.find((t) => t.month === n && t.year === a), Fn = (e, n) => typeof e == "function" ? e(n) : e.years.includes(n), Xl = (e) => Dt(e, "yyyy-MM-dd"), ha = Pa({
3716
+ const r = un(e, t, n);
3717
+ return on(t, r, a, !!n) && l;
3718
+ }, sn = (e) => Ie(K(), jt(e)), Gu = (e, n) => e instanceof Map ? Array.from(e.values()).filter((a) => _e(K(a)) === n).map((a) => De(a)) : [], Ql = (e, n, a) => typeof e == "function" ? e({ month: n, year: a }) : !!e.months.find((t) => t.month === n && t.year === a), Fn = (e, n) => typeof e == "function" ? e(n) : e.years.includes(n), jl = (e) => Dt(e, "yyyy-MM-dd"), ha = Ta({
3719
3719
  menuFocused: !1,
3720
3720
  shiftKeyInMenu: !1
3721
- }), jl = () => {
3721
+ }), Xl = () => {
3722
3722
  const e = (a) => {
3723
3723
  ha.menuFocused = a;
3724
3724
  }, n = (a) => {
@@ -3729,7 +3729,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3729
3729
  setMenuFocused: e,
3730
3730
  setShiftKey: n
3731
3731
  };
3732
- }, Re = Pa({
3732
+ }, Re = Ta({
3733
3733
  monthYear: [],
3734
3734
  calendar: [],
3735
3735
  time: [],
@@ -3740,13 +3740,13 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3740
3740
  1: []
3741
3741
  },
3742
3742
  monthPicker: []
3743
- }), vn = X(null), Ia = X(!1), mn = X(!1), pn = X(!1), fn = X(!1), Ze = X(0), Fe = X(0), Nt = () => {
3744
- const e = G(() => Ia.value ? [...Re.selectionGrid, Re.actionRow].filter((d) => d.length) : mn.value ? [
3743
+ }), dn = j(null), Ya = j(!1), cn = j(!1), vn = j(!1), mn = j(!1), Ze = j(0), Fe = j(0), Nt = () => {
3744
+ const e = G(() => Ya.value ? [...Re.selectionGrid, Re.actionRow].filter((d) => d.length) : cn.value ? [
3745
3745
  ...Re.timePicker[0],
3746
3746
  ...Re.timePicker[1],
3747
- fn.value ? [] : [vn.value],
3747
+ mn.value ? [] : [dn.value],
3748
3748
  Re.actionRow
3749
- ].filter((d) => d.length) : pn.value ? [...Re.monthPicker, Re.actionRow] : [Re.monthYear, ...Re.calendar, Re.time, Re.actionRow].filter((d) => d.length)), n = (d) => {
3749
+ ].filter((d) => d.length) : vn.value ? [...Re.monthPicker, Re.actionRow] : [Re.monthYear, ...Re.calendar, Re.time, Re.actionRow].filter((d) => d.length)), n = (d) => {
3750
3750
  Ze.value = d ? Ze.value + 1 : Ze.value - 1;
3751
3751
  let f = null;
3752
3752
  e.value[Fe.value] && (f = e.value[Fe.value][Ze.value]), !f && e.value[Fe.value + (d ? 1 : -1)] ? (Fe.value = Fe.value + (d ? 1 : -1), Ze.value = d ? 0 : e.value[Fe.value].length - 1) : f || (Ze.value = d ? Ze.value - 1 : Ze.value + 1);
@@ -3754,7 +3754,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3754
3754
  Fe.value === 0 && !d || Fe.value === e.value.length && d || (Fe.value = d ? Fe.value + 1 : Fe.value - 1, e.value[Fe.value] ? e.value[Fe.value] && !e.value[Fe.value][Ze.value] && Ze.value !== 0 && (Ze.value = e.value[Fe.value].length - 1) : Fe.value = d ? Fe.value - 1 : Fe.value + 1);
3755
3755
  }, t = (d) => {
3756
3756
  let f = null;
3757
- e.value[Fe.value] && (f = e.value[Fe.value][Ze.value]), f ? f.focus({ preventScroll: !Ia.value }) : Ze.value = d ? Ze.value - 1 : Ze.value + 1;
3757
+ e.value[Fe.value] && (f = e.value[Fe.value][Ze.value]), f ? f.focus({ preventScroll: !Ya.value }) : Ze.value = d ? Ze.value - 1 : Ze.value + 1;
3758
3758
  }, l = () => {
3759
3759
  n(!0), t(!0);
3760
3760
  }, r = () => {
@@ -3774,13 +3774,13 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3774
3774
  buildMatrix: s,
3775
3775
  buildMultiLevelMatrix: k,
3776
3776
  setTimePickerBackRef: (d) => {
3777
- vn.value = d;
3777
+ dn.value = d;
3778
3778
  },
3779
3779
  setSelectionGrid: (d) => {
3780
- Ia.value = d, m(), d || (Re.selectionGrid = []);
3780
+ Ya.value = d, m(), d || (Re.selectionGrid = []);
3781
3781
  },
3782
3782
  setTimePicker: (d, f = !1) => {
3783
- mn.value = d, fn.value = f, m(), d || (Re.timePicker[0] = [], Re.timePicker[1] = []);
3783
+ cn.value = d, mn.value = f, m(), d || (Re.timePicker[0] = [], Re.timePicker[1] = []);
3784
3784
  },
3785
3785
  setTimePickerElements: (d, f = 0) => {
3786
3786
  Re.timePicker[f] = d;
@@ -3790,10 +3790,10 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3790
3790
  arrowUp: o,
3791
3791
  arrowDown: v,
3792
3792
  clearArrowNav: () => {
3793
- Re.monthYear = [], Re.calendar = [], Re.time = [], Re.actionRow = [], Re.selectionGrid = [], Re.timePicker[0] = [], Re.timePicker[1] = [], Ia.value = !1, mn.value = !1, fn.value = !1, pn.value = !1, m(), vn.value = null;
3793
+ Re.monthYear = [], Re.calendar = [], Re.time = [], Re.actionRow = [], Re.selectionGrid = [], Re.timePicker[0] = [], Re.timePicker[1] = [], Ya.value = !1, cn.value = !1, mn.value = !1, vn.value = !1, m(), dn.value = null;
3794
3794
  },
3795
3795
  setMonthPicker: (d) => {
3796
- pn.value = d, m();
3796
+ vn.value = d, m();
3797
3797
  },
3798
3798
  refSets: Re
3799
3799
  // exposed for testing
@@ -3913,7 +3913,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3913
3913
  dateInTz: e.dateInTz ?? void 0,
3914
3914
  emitTimezone: e.emitTimezone ?? void 0,
3915
3915
  convertModel: e.convertModel ?? !0
3916
- } : { timezone: void 0, exactMatch: !1, emitTimezone: void 0 }, hn = (e, n, a) => new Map(
3916
+ } : { timezone: void 0, exactMatch: !1, emitTimezone: void 0 }, pn = (e, n, a) => new Map(
3917
3917
  e.map((t) => {
3918
3918
  const l = Bn(t, n, a);
3919
3919
  return [Hn(l), l];
@@ -3928,9 +3928,9 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3928
3928
  return {
3929
3929
  minDate: Mn(e.minDate, e.timezone, e.isSpecific),
3930
3930
  maxDate: Mn(e.maxDate, e.timezone, e.isSpecific),
3931
- disabledDates: on(e.disabledDates) ? hn(e.disabledDates, e.timezone, e.isSpecific) : e.disabledDates,
3932
- allowedDates: on(e.allowedDates) ? hn(e.allowedDates, e.timezone, e.isSpecific) : null,
3933
- highlight: typeof e.highlight == "object" && on((n = e.highlight) == null ? void 0 : n.dates) ? hn(e.highlight.dates, e.timezone) : e.highlight,
3931
+ disabledDates: ln(e.disabledDates) ? pn(e.disabledDates, e.timezone, e.isSpecific) : e.disabledDates,
3932
+ allowedDates: ln(e.allowedDates) ? pn(e.allowedDates, e.timezone, e.isSpecific) : null,
3933
+ highlight: typeof e.highlight == "object" && ln((n = e.highlight) == null ? void 0 : n.dates) ? pn(e.highlight.dates, e.timezone) : e.highlight,
3934
3934
  markers: di(e.markers, e.timezone)
3935
3935
  };
3936
3936
  }, vi = (e) => typeof e == "boolean" ? { enabled: e, dragSelect: !0, limit: null } : {
@@ -3987,7 +3987,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3987
3987
  getDefaultStartTime: l
3988
3988
  };
3989
3989
  }, pi = (e, n, a) => {
3990
- const t = X(), { defaultedTextInput: l, defaultedRange: r, defaultedTz: o, defaultedMultiDates: v, getDefaultPattern: s } = Be(n), k = X(""), m = wa(n, "format"), d = wa(n, "formatLocale");
3990
+ const t = j(), { defaultedTextInput: l, defaultedRange: r, defaultedTz: o, defaultedMultiDates: v, getDefaultPattern: s } = Be(n), k = j(""), m = ba(n, "format"), d = ba(n, "formatLocale");
3991
3991
  Qe(
3992
3992
  t,
3993
3993
  () => {
@@ -4017,7 +4017,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4017
4017
  hours: At(p),
4018
4018
  minutes: Lt(p),
4019
4019
  seconds: n.enableSeconds ? na(p) : 0
4020
- } : null, S = (p) => n.modelType ? T(p) : { month: De(p), year: we(p) }, E = (p) => Array.isArray(p) ? v.value.enabled ? p.map((ue) => N(ue, Mt(K(), ue))) : Ya(
4020
+ } : null, S = (p) => n.modelType ? T(p) : { month: De(p), year: _e(p) }, E = (p) => Array.isArray(p) ? v.value.enabled ? p.map((ue) => N(ue, Mt(K(), ue))) : Sa(
4021
4021
  () => [
4022
4022
  Mt(K(), p[0]),
4023
4023
  p[1] ? Mt(K(), p[1]) : Zt(r.value.partialRange)
@@ -4034,7 +4034,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4034
4034
  )
4035
4035
  ] : N(p, Bt(null, p.hours, p.minutes, p.seconds)), I = (p) => {
4036
4036
  const ue = Ie(K(), { date: 1 });
4037
- return Array.isArray(p) ? v.value.enabled ? p.map((ge) => N(ge, Pt(ue, +ge.month, +ge.year))) : Ya(
4037
+ return Array.isArray(p) ? v.value.enabled ? p.map((ge) => N(ge, Pt(ue, +ge.month, +ge.year))) : Sa(
4038
4038
  () => [
4039
4039
  N(p[0], Pt(ue, +p[0].month, +p[0].year)),
4040
4040
  N(
@@ -4057,7 +4057,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4057
4057
  ];
4058
4058
  }
4059
4059
  return K(p[0]);
4060
- }, y = (p) => n.modelAuto ? Array.isArray(p) ? [q(p[0]), q(p[1])] : n.autoApply ? [q(p)] : [q(p), null] : Array.isArray(p) ? Ya(
4060
+ }, y = (p) => n.modelAuto ? Array.isArray(p) ? [q(p[0]), q(p[1])] : n.autoApply ? [q(p)] : [q(p), null] : Array.isArray(p) ? Sa(
4061
4061
  () => p[1] ? [
4062
4062
  q(p[0]),
4063
4063
  p[1] ? q(p[1]) : Zt(r.value.partialRange)
@@ -4071,9 +4071,9 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4071
4071
  T(p[0]),
4072
4072
  p[1] ? T(p[1]) : Zt(r.value.partialRange)
4073
4073
  ];
4074
- }, L = () => t.value[1] ? H() : T(je(t.value[0])), re = () => (t.value || []).map((p) => T(p)), pe = (p = !1) => (p || z(), n.modelAuto ? L() : v.value.enabled ? re() : Array.isArray(t.value) ? Ya(() => H(), r.value.enabled) : T(je(t.value))), he = (p) => !p || Array.isArray(p) && !p.length ? null : n.timePicker ? w(je(p)) : n.monthPicker ? I(je(p)) : n.yearPicker ? E(je(p)) : v.value.enabled ? C(je(p)) : n.weekPicker ? x(je(p)) : y(je(p)), D = (p) => {
4074
+ }, L = () => t.value[1] ? H() : T(Xe(t.value[0])), le = () => (t.value || []).map((p) => T(p)), pe = (p = !1) => (p || z(), n.modelAuto ? L() : v.value.enabled ? le() : Array.isArray(t.value) ? Sa(() => H(), r.value.enabled) : T(Xe(t.value))), he = (p) => !p || Array.isArray(p) && !p.length ? null : n.timePicker ? w(Xe(p)) : n.monthPicker ? I(Xe(p)) : n.yearPicker ? E(Xe(p)) : v.value.enabled ? C(Xe(p)) : n.weekPicker ? x(Xe(p)) : y(Xe(p)), D = (p) => {
4075
4075
  const ue = he(p);
4076
- Tn(je(ue)) ? (t.value = je(ue), oe()) : (t.value = null, k.value = "");
4076
+ Tn(Xe(ue)) ? (t.value = Xe(ue), oe()) : (t.value = null, k.value = "");
4077
4077
  }, Y = () => {
4078
4078
  const p = (ue) => Dt(ue, l.value.format);
4079
4079
  return `${p(t.value[0])} ${l.value.rangeSeparator} ${t.value[1] ? p(t.value[1]) : ""}`;
@@ -4092,22 +4092,22 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4092
4092
  }, T = (p) => p ? n.utc ? Uu(p, n.utc === "preserve", n.enableSeconds) : n.modelType ? n.modelType === "timestamp" ? +b(p) : n.modelType === "iso" ? b(p).toISOString() : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? _(b(p)) : _(b(p), n.modelType, !0) : b(p) : "", ie = (p, ue = !1, ge = !1) => {
4093
4093
  if (ge) return p;
4094
4094
  if (e("update:model-value", p), o.value.emitTimezone && ue) {
4095
- const We = Array.isArray(p) ? p.map((V) => it(je(V), o.value.emitTimezone)) : it(je(p), o.value.emitTimezone);
4095
+ const We = Array.isArray(p) ? p.map((V) => it(Xe(V), o.value.emitTimezone)) : it(Xe(p), o.value.emitTimezone);
4096
4096
  e("update:model-timezone-value", We);
4097
4097
  }
4098
- }, j = (p) => Array.isArray(t.value) ? v.value.enabled ? t.value.map((ue) => p(ue)) : [
4098
+ }, X = (p) => Array.isArray(t.value) ? v.value.enabled ? t.value.map((ue) => p(ue)) : [
4099
4099
  p(t.value[0]),
4100
4100
  t.value[1] ? p(t.value[1]) : Zt(r.value.partialRange)
4101
- ] : p(je(t.value)), O = () => {
4101
+ ] : p(Xe(t.value)), O = () => {
4102
4102
  if (Array.isArray(t.value)) {
4103
4103
  const p = Tt(t.value[0], n.weekStart), ue = t.value[1] ? Tt(t.value[1], n.weekStart) : [];
4104
4104
  return [p.map((ge) => K(ge)), ue.map((ge) => K(ge))];
4105
4105
  }
4106
4106
  return Tt(t.value, n.weekStart).map((p) => K(p));
4107
- }, u = (p, ue) => ie(je(j(p)), !1, ue), P = (p) => {
4107
+ }, u = (p, ue) => ie(Xe(X(p)), !1, ue), P = (p) => {
4108
4108
  const ue = O();
4109
4109
  return p ? ue : e("update:model-value", O());
4110
- }, J = (p = !1) => (p || oe(), n.monthPicker ? u(S, p) : n.timePicker ? u(h, p) : n.yearPicker ? u(we, p) : n.weekPicker ? P(p) : ie(pe(p), !0, p));
4110
+ }, J = (p = !1) => (p || oe(), n.monthPicker ? u(S, p) : n.timePicker ? u(h, p) : n.yearPicker ? u(_e, p) : n.weekPicker ? P(p) : ie(pe(p), !0, p));
4111
4111
  return {
4112
4112
  inputValue: k,
4113
4113
  internalModelValue: t,
@@ -4122,13 +4122,13 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4122
4122
  return a.value.months.includes(De(f)) ? (f = d ? gt(m, 1) : ra(m, 1), r(f, d)) : f;
4123
4123
  }, o = (m, d) => {
4124
4124
  let f = m;
4125
- return a.value.years.includes(we(f)) ? (f = d ? Pn(m, 1) : Vl(m, 1), o(f, d)) : f;
4125
+ return a.value.years.includes(_e(f)) ? (f = d ? Pn(m, 1) : Vl(m, 1), o(f, d)) : f;
4126
4126
  }, v = (m, d = !1) => {
4127
4127
  const f = Ie(K(), { month: e.month, year: e.year });
4128
4128
  let b = m ? gt(f, 1) : ra(f, 1);
4129
4129
  e.disableYearSelect && (b = Mt(b, e.year));
4130
- let _ = De(b), h = we(b);
4131
- a.value.months.includes(_) && (b = r(b, m), _ = De(b), h = we(b)), a.value.years.includes(h) && (b = o(b, m), h = we(b)), l(_, h, m, e.preventMinMaxNavigation) && s(_, h, d);
4130
+ let _ = De(b), h = _e(b);
4131
+ a.value.months.includes(_) && (b = r(b, m), _ = De(b), h = _e(b)), a.value.years.includes(h) && (b = o(b, m), h = _e(b)), l(_, h, m, e.preventMinMaxNavigation) && s(_, h, d);
4132
4132
  }, s = (m, d, f) => {
4133
4133
  n("update-month-year", { month: m, year: d, fromNav: f });
4134
4134
  }, k = G(() => (m) => Ul(
@@ -4139,7 +4139,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4139
4139
  m
4140
4140
  ));
4141
4141
  return { handleMonthYearChange: v, isDisabled: k, updateMonthYear: s };
4142
- }, Wa = {
4142
+ }, za = {
4143
4143
  multiCalendars: { type: [Boolean, Number, String, Object], default: void 0 },
4144
4144
  modelValue: { type: [String, Date, Array, Object, Number], default: null },
4145
4145
  modelType: { type: String, default: null },
@@ -4262,7 +4262,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4262
4262
  enableMinutes: { type: Boolean, default: !0 },
4263
4263
  ui: { type: Object, default: () => ({}) }
4264
4264
  }, wt = {
4265
- ...Wa,
4265
+ ...za,
4266
4266
  shadow: { type: Boolean, default: !1 },
4267
4267
  flowStep: { type: Number, default: 0 },
4268
4268
  internalModelValue: { type: [Date, Array], default: null },
@@ -4291,10 +4291,10 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4291
4291
  defaultedInline: s,
4292
4292
  defaultedRange: k,
4293
4293
  defaultedMultiDates: m
4294
- } = Be(t), { isTimeValid: d, isMonthValid: f } = Ht(t), { buildMatrix: b } = Nt(), _ = X(null), h = X(null), S = X(!1), E = X({}), N = X(null), w = X(null);
4294
+ } = Be(t), { isTimeValid: d, isMonthValid: f } = Ht(t), { buildMatrix: b } = Nt(), _ = j(null), h = j(null), S = j(!1), E = j({}), N = j(null), w = j(null);
4295
4295
  Je(() => {
4296
- t.arrowNavigation && b([Xe(_), Xe(h)], "actionRow"), I(), window.addEventListener("resize", I);
4297
- }), Fa(() => {
4296
+ t.arrowNavigation && b([je(_), je(h)], "actionRow"), I(), window.addEventListener("resize", I);
4297
+ }), Na(() => {
4298
4298
  window.removeEventListener("resize", I);
4299
4299
  });
4300
4300
  const I = () => {
@@ -4307,7 +4307,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4307
4307
  () => !d.value(t.internalModelValue) || !f.value(t.internalModelValue) || !C.value
4308
4308
  ), y = () => {
4309
4309
  const D = r.value;
4310
- return t.timePicker || t.monthPicker, D(je(t.internalModelValue));
4310
+ return t.timePicker || t.monthPicker, D(Xe(t.internalModelValue));
4311
4311
  }, z = () => {
4312
4312
  const D = t.internalModelValue;
4313
4313
  return o.value.count > 0 ? `${H(D[0])} - ${H(D[1])}` : [H(D[0]), H(D[1])];
@@ -4318,8 +4318,8 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4318
4318
  v.value.rangeSeparator,
4319
4319
  t.modelAuto,
4320
4320
  r.value
4321
- ), L = G(() => !t.internalModelValue || !t.menuMount ? "" : typeof r.value == "string" ? Array.isArray(t.internalModelValue) ? t.internalModelValue.length === 2 && t.internalModelValue[1] ? z() : m.value.enabled ? t.internalModelValue.map((D) => `${H(D)}`) : t.modelAuto ? `${H(t.internalModelValue[0])}` : `${H(t.internalModelValue[0])} -` : H(t.internalModelValue) : y()), re = () => m.value.enabled ? "; " : " - ", pe = G(
4322
- () => Array.isArray(L.value) ? L.value.join(re()) : L.value
4321
+ ), L = G(() => !t.internalModelValue || !t.menuMount ? "" : typeof r.value == "string" ? Array.isArray(t.internalModelValue) ? t.internalModelValue.length === 2 && t.internalModelValue[1] ? z() : m.value.enabled ? t.internalModelValue.map((D) => `${H(D)}`) : t.modelAuto ? `${H(t.internalModelValue[0])}` : `${H(t.internalModelValue[0])} -` : H(t.internalModelValue) : y()), le = () => m.value.enabled ? "; " : " - ", pe = G(
4322
+ () => Array.isArray(L.value) ? L.value.join(le()) : L.value
4323
4323
  ), he = () => {
4324
4324
  d.value(t.internalModelValue) && f.value(t.internalModelValue) && C.value ? a("select-date") : a("invalid-select");
4325
4325
  };
@@ -4348,7 +4348,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4348
4348
  Ye(Ce(pe.value), 1)
4349
4349
  ], 64)) : F("", !0)
4350
4350
  ], 12, hi)) : F("", !0),
4351
- _e("div", {
4351
+ we("div", {
4352
4352
  ref_key: "actionBtnContainer",
4353
4353
  ref: N,
4354
4354
  class: "dp__action_buttons",
@@ -4391,7 +4391,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4391
4391
  ], 64))
4392
4392
  ], 512));
4393
4393
  }
4394
- }), bi = ["role", "aria-label", "tabindex"], wi = { class: "dp__selection_grid_header" }, _i = ["aria-selected", "aria-disabled", "data-test", "onClick", "onKeydown", "onMouseover"], ki = ["aria-label"], Aa = /* @__PURE__ */ Ve({
4394
+ }), bi = ["role", "aria-label", "tabindex"], wi = { class: "dp__selection_grid_header" }, _i = ["aria-selected", "aria-disabled", "data-test", "onClick", "onKeydown", "onMouseover"], ki = ["aria-label"], Pa = /* @__PURE__ */ Ve({
4395
4395
  __name: "SelectionOverlay",
4396
4396
  props: {
4397
4397
  items: {},
@@ -4416,19 +4416,19 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4416
4416
  setup(e, { expose: n, emit: a }) {
4417
4417
  const { setSelectionGrid: t, buildMultiLevelMatrix: l, setMonthPicker: r } = Nt(), o = a, v = e, { defaultedAriaLabels: s, defaultedTextInput: k, defaultedConfig: m } = Be(
4418
4418
  v
4419
- ), { hideNavigationButtons: d } = ja(), f = X(!1), b = X(null), _ = X(null), h = X([]), S = X(), E = X(null), N = X(0), w = X(null);
4419
+ ), { hideNavigationButtons: d } = Qa(), f = j(!1), b = j(null), _ = j(null), h = j([]), S = j(), E = j(null), N = j(0), w = j(null);
4420
4420
  ir(() => {
4421
4421
  b.value = null;
4422
4422
  }), Je(() => {
4423
- ct().then(() => re()), v.noOverlayFocus || C(), I(!0);
4424
- }), Fa(() => I(!1));
4425
- const I = (j) => {
4423
+ ct().then(() => le()), v.noOverlayFocus || C(), I(!0);
4424
+ }), Na(() => I(!1));
4425
+ const I = (X) => {
4426
4426
  var O;
4427
- v.arrowNavigation && ((O = v.headerRefs) != null && O.length ? r(j) : t(j));
4427
+ v.arrowNavigation && ((O = v.headerRefs) != null && O.length ? r(X) : t(X));
4428
4428
  }, C = () => {
4429
- var j;
4430
- const O = Xe(_);
4431
- O && (k.value.enabled || (b.value ? (j = b.value) == null || j.focus({ preventScroll: !0 }) : O.focus({ preventScroll: !0 })), f.value = O.clientHeight < O.scrollHeight);
4429
+ var X;
4430
+ const O = je(_);
4431
+ O && (k.value.enabled || (b.value ? (X = b.value) == null || X.focus({ preventScroll: !0 }) : O.focus({ preventScroll: !0 })), f.value = O.clientHeight < O.scrollHeight);
4432
4432
  }, x = G(
4433
4433
  () => ({
4434
4434
  dp__overlay: !0,
@@ -4448,93 +4448,93 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4448
4448
  dp__button_bottom: v.isLast
4449
4449
  })
4450
4450
  ), L = G(() => {
4451
- var j, O;
4451
+ var X, O;
4452
4452
  return {
4453
4453
  dp__overlay_container: !0,
4454
- dp__container_flex: ((j = v.items) == null ? void 0 : j.length) <= 6,
4454
+ dp__container_flex: ((X = v.items) == null ? void 0 : X.length) <= 6,
4455
4455
  dp__container_block: ((O = v.items) == null ? void 0 : O.length) > 6
4456
4456
  };
4457
4457
  });
4458
4458
  Qe(
4459
4459
  () => v.items,
4460
- () => re(!1),
4460
+ () => le(!1),
4461
4461
  { deep: !0 }
4462
4462
  );
4463
- const re = (j = !0) => {
4463
+ const le = (X = !0) => {
4464
4464
  ct().then(() => {
4465
- const O = Xe(b), u = Xe(_), P = Xe(E), J = Xe(w), p = P ? P.getBoundingClientRect().height : 0;
4466
- u && (u.getBoundingClientRect().height ? N.value = u.getBoundingClientRect().height - p : N.value = m.value.modeHeight - p), O && J && j && (J.scrollTop = O.offsetTop - J.offsetTop - (N.value / 2 - O.getBoundingClientRect().height) - p);
4465
+ const O = je(b), u = je(_), P = je(E), J = je(w), p = P ? P.getBoundingClientRect().height : 0;
4466
+ u && (u.getBoundingClientRect().height ? N.value = u.getBoundingClientRect().height - p : N.value = m.value.modeHeight - p), O && J && X && (J.scrollTop = O.offsetTop - J.offsetTop - (N.value / 2 - O.getBoundingClientRect().height) - p);
4467
4467
  });
4468
- }, pe = (j) => {
4469
- j.disabled || o("selected", j.value);
4468
+ }, pe = (X) => {
4469
+ X.disabled || o("selected", X.value);
4470
4470
  }, he = () => {
4471
4471
  o("toggle"), o("reset-flow");
4472
4472
  }, D = () => {
4473
4473
  v.escClose && he();
4474
- }, Y = (j, O, u, P) => {
4475
- j && ((O.active || O.value === v.focusValue) && (b.value = j), v.arrowNavigation && (Array.isArray(h.value[u]) ? h.value[u][P] = j : h.value[u] = [j], M()));
4474
+ }, Y = (X, O, u, P) => {
4475
+ X && ((O.active || O.value === v.focusValue) && (b.value = X), v.arrowNavigation && (Array.isArray(h.value[u]) ? h.value[u][P] = X : h.value[u] = [X], M()));
4476
4476
  }, M = () => {
4477
- var j, O;
4478
- const u = (j = v.headerRefs) != null && j.length ? [v.headerRefs].concat(h.value) : h.value.concat([v.skipButtonRef ? [] : [E.value]]);
4479
- l(je(u), (O = v.headerRefs) != null && O.length ? "monthPicker" : "selectionGrid");
4480
- }, Q = (j) => {
4481
- v.arrowNavigation || Et(j, m.value, !0);
4482
- }, oe = (j) => {
4483
- S.value = j, o("hover-value", j);
4477
+ var X, O;
4478
+ const u = (X = v.headerRefs) != null && X.length ? [v.headerRefs].concat(h.value) : h.value.concat([v.skipButtonRef ? [] : [E.value]]);
4479
+ l(Xe(u), (O = v.headerRefs) != null && O.length ? "monthPicker" : "selectionGrid");
4480
+ }, Q = (X) => {
4481
+ v.arrowNavigation || Et(X, m.value, !0);
4482
+ }, oe = (X) => {
4483
+ S.value = X, o("hover-value", X);
4484
4484
  }, q = () => {
4485
4485
  if (he(), !v.isLast) {
4486
- const j = Dn(v.menuWrapRef ?? null, "action-row");
4487
- if (j) {
4488
- const O = Ll(j);
4486
+ const X = Dn(v.menuWrapRef ?? null, "action-row");
4487
+ if (X) {
4488
+ const O = Ll(X);
4489
4489
  O == null || O.focus();
4490
4490
  }
4491
4491
  }
4492
- }, T = (j) => {
4493
- switch (j.key) {
4492
+ }, T = (X) => {
4493
+ switch (X.key) {
4494
4494
  case Ee.esc:
4495
4495
  return D();
4496
4496
  case Ee.arrowLeft:
4497
- return Q(j);
4497
+ return Q(X);
4498
4498
  case Ee.arrowRight:
4499
- return Q(j);
4499
+ return Q(X);
4500
4500
  case Ee.arrowUp:
4501
- return Q(j);
4501
+ return Q(X);
4502
4502
  case Ee.arrowDown:
4503
- return Q(j);
4503
+ return Q(X);
4504
4504
  default:
4505
4505
  return;
4506
4506
  }
4507
- }, ie = (j) => {
4508
- if (j.key === Ee.enter) return he();
4509
- if (j.key === Ee.tab) return q();
4507
+ }, ie = (X) => {
4508
+ if (X.key === Ee.enter) return he();
4509
+ if (X.key === Ee.tab) return q();
4510
4510
  };
4511
- return n({ focusGrid: C }), (j, O) => {
4511
+ return n({ focusGrid: C }), (X, O) => {
4512
4512
  var u;
4513
4513
  return g(), W("div", {
4514
4514
  ref_key: "gridWrapRef",
4515
4515
  ref: _,
4516
4516
  class: Me(x.value),
4517
4517
  style: ot(y.value),
4518
- role: j.useRelative ? void 0 : "dialog",
4519
- "aria-label": j.overlayLabel,
4520
- tabindex: j.useRelative ? void 0 : "0",
4518
+ role: X.useRelative ? void 0 : "dialog",
4519
+ "aria-label": X.overlayLabel,
4520
+ tabindex: X.useRelative ? void 0 : "0",
4521
4521
  onKeydown: T,
4522
- onClick: O[0] || (O[0] = _a(() => {
4522
+ onClick: O[0] || (O[0] = wa(() => {
4523
4523
  }, ["prevent"]))
4524
4524
  }, [
4525
- _e("div", {
4525
+ we("div", {
4526
4526
  ref_key: "containerRef",
4527
4527
  ref: w,
4528
4528
  class: Me(L.value),
4529
4529
  style: ot({ "--dp-overlay-height": `${N.value}px` }),
4530
4530
  role: "grid"
4531
4531
  }, [
4532
- _e("div", wi, [
4533
- ce(j.$slots, "header")
4532
+ we("div", wi, [
4533
+ ce(X.$slots, "header")
4534
4534
  ]),
4535
- j.$slots.overlay ? ce(j.$slots, "overlay", { key: 0 }) : (g(!0), W(be, { key: 1 }, Pe(j.items, (P, J) => (g(), W("div", {
4535
+ X.$slots.overlay ? ce(X.$slots, "overlay", { key: 0 }) : (g(!0), W(be, { key: 1 }, Pe(X.items, (P, J) => (g(), W("div", {
4536
4536
  key: J,
4537
- class: Me(["dp__overlay_row", { dp__flex_row: j.items.length >= 3 }]),
4537
+ class: Me(["dp__overlay_row", { dp__flex_row: X.items.length >= 3 }]),
4538
4538
  role: "row"
4539
4539
  }, [
4540
4540
  (g(!0), W(be, null, Pe(P, (p, ue) => (g(), W("div", {
@@ -4547,25 +4547,25 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4547
4547
  "aria-disabled": p.disabled || void 0,
4548
4548
  tabindex: "0",
4549
4549
  "data-test": p.text,
4550
- onClick: _a((ge) => pe(p), ["prevent"]),
4550
+ onClick: wa((ge) => pe(p), ["prevent"]),
4551
4551
  onKeydown: (ge) => i(lt)(ge, () => pe(p), !0),
4552
4552
  onMouseover: (ge) => oe(p.value)
4553
4553
  }, [
4554
- _e("div", {
4554
+ we("div", {
4555
4555
  class: Me(p.className)
4556
4556
  }, [
4557
- j.$slots.item ? ce(j.$slots, "item", {
4557
+ X.$slots.item ? ce(X.$slots, "item", {
4558
4558
  key: 0,
4559
4559
  item: p
4560
4560
  }) : F("", !0),
4561
- j.$slots.item ? F("", !0) : (g(), W(be, { key: 1 }, [
4561
+ X.$slots.item ? F("", !0) : (g(), W(be, { key: 1 }, [
4562
4562
  Ye(Ce(p.text), 1)
4563
4563
  ], 64))
4564
4564
  ], 2)
4565
4565
  ], 42, _i))), 128))
4566
4566
  ], 2))), 128))
4567
4567
  ], 6),
4568
- j.$slots["button-icon"] ? Va((g(), W("button", {
4568
+ X.$slots["button-icon"] ? Ia((g(), W("button", {
4569
4569
  key: 0,
4570
4570
  ref_key: "toggleButton",
4571
4571
  ref: E,
@@ -4576,14 +4576,14 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4576
4576
  onClick: he,
4577
4577
  onKeydown: ie
4578
4578
  }, [
4579
- ce(j.$slots, "button-icon")
4579
+ ce(X.$slots, "button-icon")
4580
4580
  ], 42, ki)), [
4581
- [Ra, !i(d)(j.hideNavigation, j.type)]
4581
+ [Va, !i(d)(X.hideNavigation, X.type)]
4582
4582
  ]) : F("", !0)
4583
4583
  ], 46, bi);
4584
4584
  };
4585
4585
  }
4586
- }), Qa = /* @__PURE__ */ Ve({
4586
+ }), Ua = /* @__PURE__ */ Ve({
4587
4587
  __name: "InstanceWrap",
4588
4588
  props: {
4589
4589
  multiCalendars: {},
@@ -4615,7 +4615,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4615
4615
  ], 2))), 128))
4616
4616
  ], 2));
4617
4617
  }
4618
- }), xi = ["data-dp-element", "aria-label", "aria-disabled"], ba = /* @__PURE__ */ Ve({
4618
+ }), xi = ["data-dp-element", "aria-label", "aria-disabled"], ga = /* @__PURE__ */ Ve({
4619
4619
  compatConfig: {
4620
4620
  MODE: 3
4621
4621
  },
@@ -4627,7 +4627,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4627
4627
  },
4628
4628
  emits: ["activate", "set-ref"],
4629
4629
  setup(e, { emit: n }) {
4630
- const a = n, t = X(null);
4630
+ const a = n, t = j(null);
4631
4631
  return Je(() => a("set-ref", t)), (l, r) => (g(), W("button", {
4632
4632
  ref_key: "elRef",
4633
4633
  ref: t,
@@ -4640,7 +4640,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4640
4640
  onClick: r[0] || (r[0] = (o) => l.$emit("activate")),
4641
4641
  onKeydown: r[1] || (r[1] = (o) => i(lt)(o, () => l.$emit("activate"), !0))
4642
4642
  }, [
4643
- _e("span", {
4643
+ we("span", {
4644
4644
  class: Me(["dp__inner_nav", { dp__inner_nav_disabled: l.disabled }])
4645
4645
  }, [
4646
4646
  ce(l.$slots, "default")
@@ -4659,7 +4659,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4659
4659
  },
4660
4660
  emits: ["toggle-year-picker", "year-select", "handle-year"],
4661
4661
  setup(e, { emit: n }) {
4662
- const a = n, t = e, { showRightIcon: l, showLeftIcon: r } = ja(), { defaultedConfig: o, defaultedMultiCalendars: v, defaultedAriaLabels: s, defaultedTransitions: k, defaultedUI: m } = Be(t), { showTransition: d, transitionName: f } = Ca(k), b = X(!1), _ = (E = !1, N) => {
4662
+ const a = n, t = e, { showRightIcon: l, showLeftIcon: r } = Qa(), { defaultedConfig: o, defaultedMultiCalendars: v, defaultedAriaLabels: s, defaultedTransitions: k, defaultedUI: m } = Be(t), { showTransition: d, transitionName: f } = Aa(k), b = j(!1), _ = (E = !1, N) => {
4663
4663
  b.value = !b.value, a("toggle-year-picker", { flow: E, show: N });
4664
4664
  }, h = (E) => {
4665
4665
  b.value = !1, a("year-select", E);
@@ -4669,10 +4669,10 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4669
4669
  return (E, N) => {
4670
4670
  var w, I, C, x, y;
4671
4671
  return g(), W(be, null, [
4672
- _e("div", {
4672
+ we("div", {
4673
4673
  class: Me(["dp--year-mode-picker", { "dp--hidden-el": b.value }])
4674
4674
  }, [
4675
- i(r)(i(v), e.instance) ? (g(), se(ba, {
4675
+ i(r)(i(v), e.instance) ? (g(), se(ga, {
4676
4676
  key: 0,
4677
4677
  ref: "mpPrevIconRef",
4678
4678
  "aria-label": (w = i(s)) == null ? void 0 : w.prevYear,
@@ -4680,13 +4680,13 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4680
4680
  class: Me((I = i(m)) == null ? void 0 : I.navBtnPrev),
4681
4681
  onActivate: N[0] || (N[0] = (z) => S(!1))
4682
4682
  }, {
4683
- default: le(() => [
4683
+ default: re(() => [
4684
4684
  E.$slots["arrow-left"] ? ce(E.$slots, "arrow-left", { key: 0 }) : F("", !0),
4685
4685
  E.$slots["arrow-left"] ? F("", !0) : (g(), se(i(Yn), { key: 1 }))
4686
4686
  ]),
4687
4687
  _: 3
4688
4688
  }, 8, ["aria-label", "disabled", "class"])) : F("", !0),
4689
- _e("button", {
4689
+ we("button", {
4690
4690
  ref: "mpYearButtonRef",
4691
4691
  class: "dp__btn dp--year-select",
4692
4692
  type: "button",
@@ -4703,7 +4703,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4703
4703
  Ye(Ce(e.year), 1)
4704
4704
  ], 64))
4705
4705
  ], 40, Mi),
4706
- i(l)(i(v), e.instance) ? (g(), se(ba, {
4706
+ i(l)(i(v), e.instance) ? (g(), se(ga, {
4707
4707
  key: 1,
4708
4708
  ref: "mpNextIconRef",
4709
4709
  "aria-label": (x = i(s)) == null ? void 0 : x.nextYear,
@@ -4711,21 +4711,21 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4711
4711
  class: Me((y = i(m)) == null ? void 0 : y.navBtnNext),
4712
4712
  onActivate: N[3] || (N[3] = (z) => S(!0))
4713
4713
  }, {
4714
- default: le(() => [
4714
+ default: re(() => [
4715
4715
  E.$slots["arrow-right"] ? ce(E.$slots, "arrow-right", { key: 0 }) : F("", !0),
4716
4716
  E.$slots["arrow-right"] ? F("", !0) : (g(), se(i(In), { key: 1 }))
4717
4717
  ]),
4718
4718
  _: 3
4719
4719
  }, 8, ["aria-label", "disabled", "class"])) : F("", !0)
4720
4720
  ], 2),
4721
- Oe(sa, {
4721
+ Se(sa, {
4722
4722
  name: i(f)(e.showYearPicker),
4723
4723
  css: i(d)
4724
4724
  }, {
4725
- default: le(() => {
4725
+ default: re(() => {
4726
4726
  var z, H;
4727
4727
  return [
4728
- e.showYearPicker ? (g(), se(Aa, {
4728
+ e.showYearPicker ? (g(), se(Pa, {
4729
4729
  key: 0,
4730
4730
  items: e.items,
4731
4731
  "text-input": E.textInput,
@@ -4739,7 +4739,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4739
4739
  onToggle: _,
4740
4740
  onSelected: N[4] || (N[4] = (L) => h(L))
4741
4741
  }, tt({
4742
- "button-icon": le(() => [
4742
+ "button-icon": re(() => [
4743
4743
  E.$slots["calendar-icon"] ? ce(E.$slots, "calendar-icon", { key: 0 }) : F("", !0),
4744
4744
  E.$slots["calendar-icon"] ? F("", !0) : (g(), se(i(da), { key: 1 }))
4745
4745
  ]),
@@ -4747,7 +4747,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4747
4747
  }, [
4748
4748
  E.$slots["year-overlay-value"] ? {
4749
4749
  name: "item",
4750
- fn: le(({ item: L }) => [
4750
+ fn: re(({ item: L }) => [
4751
4751
  ce(E.$slots, "year-overlay-value", {
4752
4752
  text: L.text,
4753
4753
  value: L.value
@@ -4774,7 +4774,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4774
4774
  }, zn = (e, n, a) => {
4775
4775
  let t = e.value ? e.value.slice() : [];
4776
4776
  return t.length === 2 && t[1] !== null && (t = []), t.length ? Ne(n, t[0]) ? (t.unshift(n), a("range-start", t[0]), a("range-start", t[1])) : (t[1] = n, a("range-end", n)) : (t = [n], a("range-start", n)), t;
4777
- }, Xa = (e, n, a, t) => {
4777
+ }, Wa = (e, n, a, t) => {
4778
4778
  e && (e[0] && e[1] && a && n("auto-apply"), e[0] && !e[1] && t && a && n("auto-apply"));
4779
4779
  }, Kl = (e) => {
4780
4780
  Array.isArray(e.value) && e.value.length <= 2 && e.range ? e.modelValue.value = e.value.map((n) => it(K(n), e.timezone)) : Array.isArray(e.value) || (e.modelValue.value = it(K(e.value), e.timezone));
@@ -4791,17 +4791,17 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4791
4791
  month: k,
4792
4792
  emit: m
4793
4793
  }) => {
4794
- const d = G(() => Ln(o.yearRange, o.locale, o.reverseYears)), f = X([!1]), b = G(() => (L, re) => {
4794
+ const d = G(() => Ln(o.yearRange, o.locale, o.reverseYears)), f = j([!1]), b = G(() => (L, le) => {
4795
4795
  const pe = Ie(yt(/* @__PURE__ */ new Date()), {
4796
4796
  month: k.value(L),
4797
4797
  year: s.value(L)
4798
- }), he = re ? kl(pe) : Ma(pe);
4798
+ }), he = le ? kl(pe) : xa(pe);
4799
4799
  return Ul(
4800
4800
  he,
4801
4801
  t.value.maxDate,
4802
4802
  t.value.minDate,
4803
4803
  o.preventMinMaxNavigation,
4804
- re
4804
+ le
4805
4805
  );
4806
4806
  }), _ = () => Array.isArray(r.value) && e.value.solo && r.value[1], h = () => {
4807
4807
  for (let L = 0; L < e.value.count; L++)
@@ -4810,51 +4810,51 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4810
4810
  else if (L === e.value.count - 1 && _())
4811
4811
  l.value[L] = {
4812
4812
  month: De(r.value[1]),
4813
- year: we(r.value[1])
4813
+ year: _e(r.value[1])
4814
4814
  };
4815
4815
  else {
4816
- const re = Ie(K(), l.value[L - 1]);
4817
- l.value[L] = { month: De(re), year: we(Pn(re, 1)) };
4816
+ const le = Ie(K(), l.value[L - 1]);
4817
+ l.value[L] = { month: De(le), year: _e(Pn(le, 1)) };
4818
4818
  }
4819
4819
  }, S = (L) => {
4820
4820
  if (!L) return h();
4821
- const re = Ie(K(), l.value[L]);
4822
- return l.value[0].year = we(Vl(re, e.value.count - 1)), h();
4823
- }, E = (L, re) => {
4824
- const pe = Rr(re, L);
4825
- return n.value.showLastInRange && pe > 1 ? re : L;
4821
+ const le = Ie(K(), l.value[L]);
4822
+ return l.value[0].year = _e(Vl(le, e.value.count - 1)), h();
4823
+ }, E = (L, le) => {
4824
+ const pe = Rr(le, L);
4825
+ return n.value.showLastInRange && pe > 1 ? le : L;
4826
4826
  }, N = (L) => o.focusStartDate || e.value.solo ? L[0] : L[1] ? E(L[0], L[1]) : L[0], w = () => {
4827
4827
  if (r.value) {
4828
4828
  const L = Array.isArray(r.value) ? N(r.value) : r.value;
4829
- l.value[0] = { month: De(L), year: we(L) };
4829
+ l.value[0] = { month: De(L), year: _e(L) };
4830
4830
  }
4831
4831
  }, I = () => {
4832
4832
  w(), e.value.count && h();
4833
4833
  };
4834
- Qe(r, (L, re) => {
4835
- o.isTextInputDate && JSON.stringify(L ?? {}) !== JSON.stringify(re ?? {}) && I();
4834
+ Qe(r, (L, le) => {
4835
+ o.isTextInputDate && JSON.stringify(L ?? {}) !== JSON.stringify(le ?? {}) && I();
4836
4836
  }), Je(() => {
4837
4837
  I();
4838
4838
  });
4839
- const C = (L, re) => {
4840
- l.value[re].year = L, m("update-month-year", { instance: re, year: L, month: l.value[re].month }), e.value.count && !e.value.solo && S(re);
4841
- }, x = G(() => (L) => oa(d.value, (re) => {
4839
+ const C = (L, le) => {
4840
+ l.value[le].year = L, m("update-month-year", { instance: le, year: L, month: l.value[le].month }), e.value.count && !e.value.solo && S(le);
4841
+ }, x = G(() => (L) => oa(d.value, (le) => {
4842
4842
  var pe;
4843
- const he = s.value(L) === re.value, D = Ta(
4844
- re.value,
4843
+ const he = s.value(L) === le.value, D = Da(
4844
+ le.value,
4845
4845
  ua(t.value.minDate),
4846
4846
  ua(t.value.maxDate)
4847
- ) || ((pe = v.value.years) == null ? void 0 : pe.includes(s.value(L))), Y = Fn(a.value, re.value);
4847
+ ) || ((pe = v.value.years) == null ? void 0 : pe.includes(s.value(L))), Y = Fn(a.value, le.value);
4848
4848
  return { active: he, disabled: D, highlighted: Y };
4849
- })), y = (L, re) => {
4850
- C(L, re), H(re);
4851
- }, z = (L, re = !1) => {
4852
- if (!b.value(L, re)) {
4853
- const pe = re ? s.value(L) + 1 : s.value(L) - 1;
4849
+ })), y = (L, le) => {
4850
+ C(L, le), H(le);
4851
+ }, z = (L, le = !1) => {
4852
+ if (!b.value(L, le)) {
4853
+ const pe = le ? s.value(L) + 1 : s.value(L) - 1;
4854
4854
  C(pe, L);
4855
4855
  }
4856
- }, H = (L, re = !1, pe) => {
4857
- re || m("reset-flow"), pe !== void 0 ? f.value[L] = pe : f.value[L] = !f.value[L], f.value[L] ? m("overlay-toggle", { open: !0, overlay: et.year }) : (m("overlay-closed"), m("overlay-toggle", { open: !1, overlay: et.year }));
4856
+ }, H = (L, le = !1, pe) => {
4857
+ le || m("reset-flow"), pe !== void 0 ? f.value[L] = pe : f.value[L] = !f.value[L], f.value[L] ? m("overlay-toggle", { open: !0, overlay: et.year }) : (m("overlay-closed"), m("overlay-toggle", { open: !1, overlay: et.year }));
4858
4858
  };
4859
4859
  return {
4860
4860
  isDisabled: b,
@@ -4878,8 +4878,8 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4878
4878
  defaultedFilters: m,
4879
4879
  defaultedMultiDates: d
4880
4880
  } = Be(e), f = () => {
4881
- e.isTextInputDate && I(we(K(e.startDate)), 0);
4882
- }, { modelValue: b, year: _, month: h, calendars: S } = $a(e, n, f), E = G(() => El(e.formatLocale, e.locale, e.monthNameFormat)), N = X(null), { checkMinMaxRange: w } = Ht(e), {
4881
+ e.isTextInputDate && I(_e(K(e.startDate)), 0);
4882
+ }, { modelValue: b, year: _, month: h, calendars: S } = Ca(e, n, f), E = G(() => El(e.formatLocale, e.locale, e.monthNameFormat)), N = j(null), { checkMinMaxRange: w } = Ht(e), {
4883
4883
  selectYear: I,
4884
4884
  groupedYears: C,
4885
4885
  showYearPicker: x,
@@ -4901,9 +4901,9 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4901
4901
  emit: n
4902
4902
  });
4903
4903
  Je(() => {
4904
- e.startDate && (b.value && e.focusStartDate || !b.value) && I(we(K(e.startDate)), 0);
4904
+ e.startDate && (b.value && e.focusStartDate || !b.value) && I(_e(K(e.startDate)), 0);
4905
4905
  });
4906
- const re = (u) => u ? { month: De(u), year: we(u) } : { month: null, year: null }, pe = () => b.value ? Array.isArray(b.value) ? b.value.map((u) => re(u)) : re(b.value) : re(), he = (u, P) => {
4906
+ const le = (u) => u ? { month: De(u), year: _e(u) } : { month: null, year: null }, pe = () => b.value ? Array.isArray(b.value) ? b.value.map((u) => le(u)) : le(b.value) : le(), he = (u, P) => {
4907
4907
  const J = S.value[u], p = pe();
4908
4908
  return Array.isArray(p) ? p.some((ue) => ue.year === (J == null ? void 0 : J.year) && ue.month === P) : (J == null ? void 0 : J.year) === p.year && P === p.month;
4909
4909
  }, D = (u, P, J) => {
@@ -4915,14 +4915,14 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4915
4915
  const J = pe();
4916
4916
  if (Array.isArray(b.value) && Array.isArray(J)) {
4917
4917
  const p = D(u, P, 0) || D(u, P, 1), ue = Pt(yt(K()), u, _.value(P));
4918
- return Ua(b.value, N.value, ue) && !p;
4918
+ return qa(b.value, N.value, ue) && !p;
4919
4919
  }
4920
4920
  return !1;
4921
4921
  }
4922
4922
  return !1;
4923
4923
  }, M = G(() => (u) => oa(E.value, (P) => {
4924
4924
  var J;
4925
- const p = he(u, P.value), ue = Ta(
4925
+ const p = he(u, P.value), ue = Da(
4926
4926
  P.value,
4927
4927
  Hl(_.value(u), s.value.minDate),
4928
4928
  Fl(_.value(u), s.value.maxDate)
@@ -4934,11 +4934,11 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4934
4934
  }, q = (u, P) => {
4935
4935
  const J = Q(u, P);
4936
4936
  o.value.fixedEnd || o.value.fixedStart ? b.value = Jl(J, b, n, o) : b.value ? w(J, b.value) && (b.value = zn(b, Q(u, P), n)) : b.value = [Q(u, P)], ct().then(() => {
4937
- Xa(b.value, n, e.autoApply, e.modelAuto);
4937
+ Wa(b.value, n, e.autoApply, e.modelAuto);
4938
4938
  });
4939
4939
  }, T = (u, P) => {
4940
4940
  qn(Q(u, P), b, d.value.limit), n("auto-apply", !0);
4941
- }, ie = (u, P) => (S.value[P].month = u, O(P, S.value[P].year, u), d.value.enabled ? T(u, P) : o.value.enabled ? q(u, P) : oe(u, P)), j = (u, P) => {
4941
+ }, ie = (u, P) => (S.value[P].month = u, O(P, S.value[P].year, u), d.value.enabled ? T(u, P) : o.value.enabled ? q(u, P) : oe(u, P)), X = (u, P) => {
4942
4942
  I(u, P), O(P, u, null);
4943
4943
  }, O = (u, P, J) => {
4944
4944
  let p = J;
@@ -4971,7 +4971,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4971
4971
  N.value = Q(u, P);
4972
4972
  },
4973
4973
  selectMonth: ie,
4974
- selectYear: j,
4974
+ selectYear: X,
4975
4975
  toggleYearPicker: y,
4976
4976
  handleYearSelect: z,
4977
4977
  handleYear: H,
@@ -4999,7 +4999,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4999
4999
  "overlay-toggle"
5000
5000
  ],
5001
5001
  setup(e, { expose: n, emit: a }) {
5002
- const t = a, l = jt(), r = dt(l, "yearMode"), o = e;
5002
+ const t = a, l = Xt(), r = dt(l, "yearMode"), o = e;
5003
5003
  Je(() => {
5004
5004
  o.shadow || t("mount", null);
5005
5005
  });
@@ -5028,12 +5028,12 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5028
5028
  selectMonth: E,
5029
5029
  selectYear: N,
5030
5030
  handleYear: C
5031
- }), presetDate: h, toggleYearPicker: (y) => w(0, y) }), (y, z) => (g(), se(Qa, {
5031
+ }), presetDate: h, toggleYearPicker: (y) => w(0, y) }), (y, z) => (g(), se(Ua, {
5032
5032
  "multi-calendars": i(d).count,
5033
5033
  collapse: y.collapse,
5034
5034
  stretch: ""
5035
5035
  }, {
5036
- default: le(({ instance: H }) => [
5036
+ default: re(({ instance: H }) => [
5037
5037
  y.$slots["top-extra"] ? ce(y.$slots, "top-extra", {
5038
5038
  key: 0,
5039
5039
  value: y.internalModelValue
@@ -5045,7 +5045,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5045
5045
  selectMonth: i(E),
5046
5046
  selectYear: i(N),
5047
5047
  instance: H
5048
- }))) : (g(), se(Aa, {
5048
+ }))) : (g(), se(Pa, {
5049
5049
  key: 2,
5050
5050
  items: i(v)(H),
5051
5051
  "arrow-navigation": y.arrowNavigation,
@@ -5059,8 +5059,8 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5059
5059
  onSelected: (L) => i(E)(L, H),
5060
5060
  onHoverValue: (L) => i(S)(L, H)
5061
5061
  }, tt({
5062
- header: le(() => [
5063
- Oe(Gl, Ge(y.$props, {
5062
+ header: re(() => [
5063
+ Se(Gl, Ge(y.$props, {
5064
5064
  items: i(s)(H),
5065
5065
  instance: H,
5066
5066
  "show-year-picker": i(b)[H],
@@ -5070,9 +5070,9 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5070
5070
  onYearSelect: (L) => i(I)(L, H),
5071
5071
  onToggleYearPicker: (L) => i(w)(H, L == null ? void 0 : L.flow, L == null ? void 0 : L.show)
5072
5072
  }), tt({ _: 2 }, [
5073
- Pe(i(r), (L, re) => ({
5073
+ Pe(i(r), (L, le) => ({
5074
5074
  name: L,
5075
- fn: le((pe) => [
5075
+ fn: re((pe) => [
5076
5076
  ce(y.$slots, L, Ke(ut(pe)))
5077
5077
  ])
5078
5078
  }))
@@ -5082,7 +5082,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5082
5082
  }, [
5083
5083
  y.$slots["month-overlay-value"] ? {
5084
5084
  name: "item",
5085
- fn: le(({ item: L }) => [
5085
+ fn: re(({ item: L }) => [
5086
5086
  ce(y.$slots, "month-overlay-value", {
5087
5087
  text: L.text,
5088
5088
  value: L.value
@@ -5097,19 +5097,19 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5097
5097
  }
5098
5098
  }), Pi = (e, n) => {
5099
5099
  const a = () => {
5100
- e.isTextInputDate && (m.value = we(K(e.startDate)));
5101
- }, { modelValue: t } = $a(e, n, a), l = X(null), { defaultedHighlight: r, defaultedMultiDates: o, defaultedFilters: v, defaultedRange: s, propDates: k } = Be(e), m = X();
5100
+ e.isTextInputDate && (m.value = _e(K(e.startDate)));
5101
+ }, { modelValue: t } = Ca(e, n, a), l = j(null), { defaultedHighlight: r, defaultedMultiDates: o, defaultedFilters: v, defaultedRange: s, propDates: k } = Be(e), m = j();
5102
5102
  Je(() => {
5103
- e.startDate && (t.value && e.focusStartDate || !t.value) && (m.value = we(K(e.startDate)));
5103
+ e.startDate && (t.value && e.focusStartDate || !t.value) && (m.value = _e(K(e.startDate)));
5104
5104
  });
5105
- const d = (h) => Array.isArray(t.value) ? t.value.some((S) => we(S) === h) : t.value ? we(t.value) === h : !1, f = (h) => s.value.enabled && Array.isArray(t.value) ? Ua(t.value, l.value, _(h)) : !1, b = G(() => oa(Ln(e.yearRange, e.locale, e.reverseYears), (h) => {
5106
- const S = d(h.value), E = Ta(
5105
+ const d = (h) => Array.isArray(t.value) ? t.value.some((S) => _e(S) === h) : t.value ? _e(t.value) === h : !1, f = (h) => s.value.enabled && Array.isArray(t.value) ? qa(t.value, l.value, _(h)) : !1, b = G(() => oa(Ln(e.yearRange, e.locale, e.reverseYears), (h) => {
5106
+ const S = d(h.value), E = Da(
5107
5107
  h.value,
5108
5108
  ua(k.value.minDate),
5109
5109
  ua(k.value.maxDate)
5110
5110
  ) || v.value.years.includes(h.value), N = f(h.value) && !S, w = Fn(r.value, h.value);
5111
5111
  return { active: S, disabled: E, isBetween: N, highlighted: w };
5112
- })), _ = (h) => Mt(yt(Ma(/* @__PURE__ */ new Date())), h);
5112
+ })), _ = (h) => Mt(yt(xa(/* @__PURE__ */ new Date())), h);
5113
5113
  return {
5114
5114
  groupedYears: b,
5115
5115
  modelValue: t,
@@ -5120,9 +5120,9 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5120
5120
  selectYear: (h) => {
5121
5121
  var S;
5122
5122
  if (n("update-month-year", { instance: 0, year: h }), o.value.enabled)
5123
- return t.value ? Array.isArray(t.value) && (((S = t.value) == null ? void 0 : S.map((E) => we(E))).includes(h) ? t.value = t.value.filter((E) => we(E) !== h) : t.value.push(Mt(rt(K()), h))) : t.value = [Mt(rt(Ma(K())), h)], n("auto-apply", !0);
5123
+ return t.value ? Array.isArray(t.value) && (((S = t.value) == null ? void 0 : S.map((E) => _e(E))).includes(h) ? t.value = t.value.filter((E) => _e(E) !== h) : t.value.push(Mt(rt(K()), h))) : t.value = [Mt(rt(xa(K())), h)], n("auto-apply", !0);
5124
5124
  s.value.enabled ? (t.value = zn(t, _(h), n), ct().then(() => {
5125
- Xa(t.value, n, e.autoApply, e.modelAuto);
5125
+ Wa(t.value, n, e.autoApply, e.modelAuto);
5126
5126
  })) : (t.value = _(h), n("auto-apply"));
5127
5127
  }
5128
5128
  };
@@ -5155,7 +5155,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5155
5155
  d.$slots["month-year"] ? ce(d.$slots, "month-year", Ke(Ge({ key: 1 }, {
5156
5156
  years: i(r),
5157
5157
  selectYear: i(s)
5158
- }))) : (g(), se(Aa, {
5158
+ }))) : (g(), se(Pa, {
5159
5159
  key: 2,
5160
5160
  items: i(r),
5161
5161
  "is-last": d.autoApply && !i(m).keepActionRow,
@@ -5170,7 +5170,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5170
5170
  }, tt({ _: 2 }, [
5171
5171
  d.$slots["year-overlay-value"] ? {
5172
5172
  name: "item",
5173
- fn: le(({ item: b }) => [
5173
+ fn: re(({ item: b }) => [
5174
5174
  ce(d.$slots, "year-overlay-value", {
5175
5175
  text: b.text,
5176
5176
  value: b.value
@@ -5212,11 +5212,11 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5212
5212
  "am-pm-change"
5213
5213
  ],
5214
5214
  setup(e, { expose: n, emit: a }) {
5215
- const t = a, l = e, { setTimePickerElements: r, setTimePickerBackRef: o } = Nt(), { defaultedAriaLabels: v, defaultedTransitions: s, defaultedFilters: k, defaultedConfig: m, defaultedRange: d } = Be(l), { transitionName: f, showTransition: b } = Ca(s), _ = Pa({
5215
+ const t = a, l = e, { setTimePickerElements: r, setTimePickerBackRef: o } = Nt(), { defaultedAriaLabels: v, defaultedTransitions: s, defaultedFilters: k, defaultedConfig: m, defaultedRange: d } = Be(l), { transitionName: f, showTransition: b } = Aa(s), _ = Ta({
5216
5216
  hours: !1,
5217
5217
  minutes: !1,
5218
5218
  seconds: !1
5219
- }), h = X("AM"), S = X(null), E = X([]), N = X(), w = X(!1);
5219
+ }), h = j("AM"), S = j(null), E = j([]), N = j(), w = j(!1);
5220
5220
  Je(() => {
5221
5221
  t("mounted");
5222
5222
  });
@@ -5233,7 +5233,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5233
5233
  return !l.validateTime(c, B);
5234
5234
  }
5235
5235
  return !1;
5236
- }, H = G(() => (c) => !j(+l[c] + +l[`${c}Increment`], c) || z(c, !0)), L = G(() => (c) => !j(+l[c] - +l[`${c}Increment`], c) || z(c, !1)), re = (c, U) => fl(Ie(K(), c), U), pe = (c, U) => Su(Ie(K(), c), U), he = G(
5236
+ }, H = G(() => (c) => !X(+l[c] + +l[`${c}Increment`], c) || z(c, !0)), L = G(() => (c) => !X(+l[c] - +l[`${c}Increment`], c) || z(c, !1)), le = (c, U) => fl(Ie(K(), c), U), pe = (c, U) => Su(Ie(K(), c), U), he = G(
5237
5237
  () => ({
5238
5238
  dp__time_col: !0,
5239
5239
  dp__time_col_block: !l.timePickerInline,
@@ -5265,23 +5265,23 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5265
5265
  const U = l.is24 ? 24 : 12, te = c === "hours" ? U : 60, B = +l[`${c}GridIncrement`], ke = c === "hours" && !l.is24 ? B : 0, $ = [];
5266
5266
  for (let Z = ke; Z < te; Z += B)
5267
5267
  $.push({ value: l.is24 ? Z : oe(Z, c), text: Z < 10 ? `0${Z}` : `${Z}` });
5268
- return c === "hours" && !l.is24 && $.unshift({ value: h.value === "PM" ? 12 : 0, text: "12" }), oa($, (Z) => ({ active: !1, disabled: k.value.times[c].includes(Z.value) || !j(Z.value, c) || Q(c, Z.value) || y(c, Z.value) }));
5269
- }, T = (c) => c >= 0 ? c : 59, ie = (c) => c >= 0 ? c : 23, j = (c, U) => {
5270
- const te = l.minTime ? I(un(l.minTime)) : null, B = l.maxTime ? I(un(l.maxTime)) : null, ke = I(
5271
- un(
5268
+ return c === "hours" && !l.is24 && $.unshift({ value: h.value === "PM" ? 12 : 0, text: "12" }), oa($, (Z) => ({ active: !1, disabled: k.value.times[c].includes(Z.value) || !X(Z.value, c) || Q(c, Z.value) || y(c, Z.value) }));
5269
+ }, T = (c) => c >= 0 ? c : 59, ie = (c) => c >= 0 ? c : 23, X = (c, U) => {
5270
+ const te = l.minTime ? I(rn(l.minTime)) : null, B = l.maxTime ? I(rn(l.maxTime)) : null, ke = I(
5271
+ rn(
5272
5272
  x.value,
5273
5273
  U,
5274
5274
  U === "minutes" || U === "seconds" ? T(c) : ie(c)
5275
5275
  )
5276
5276
  );
5277
- return te && B ? (Da(ke, B) || ta(ke, B)) && (la(ke, te) || ta(ke, te)) : te ? la(ke, te) || ta(ke, te) : B ? Da(ke, B) || ta(ke, B) : !0;
5277
+ return te && B ? (Ma(ke, B) || ta(ke, B)) && (la(ke, te) || ta(ke, te)) : te ? la(ke, te) || ta(ke, te) : B ? Ma(ke, B) || ta(ke, B) : !0;
5278
5278
  }, O = (c) => l[`no${c[0].toUpperCase() + c.slice(1)}Overlay`], u = (c) => {
5279
5279
  O(c) || (_[c] = !_[c], _[c] ? (w.value = !0, t("overlay-opened", c)) : (w.value = !1, t("overlay-closed", c)));
5280
5280
  }, P = (c) => c === "hours" ? At : c === "minutes" ? Lt : na, J = () => {
5281
5281
  N.value && clearTimeout(N.value);
5282
5282
  }, p = (c, U = !0, te) => {
5283
- const B = U ? re : pe, ke = U ? +l[`${c}Increment`] : -+l[`${c}Increment`];
5284
- j(+l[c] + ke, c) && t(
5283
+ const B = U ? le : pe, ke = U ? +l[`${c}Increment`] : -+l[`${c}Increment`];
5284
+ X(+l[c] + ke, c) && t(
5285
5285
  `update:${c}`,
5286
5286
  P(c)(B({ [c]: +l[c] }, { [c]: +l[`${c}Increment`] }))
5287
5287
  ), !(te != null && te.keyboard) && m.value.timeArrowHoldThreshold && (N.value = setTimeout(() => {
@@ -5315,7 +5315,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5315
5315
  Ye(":")
5316
5316
  ], 64))
5317
5317
  ], 64)) : (g(), W(be, { key: 1 }, [
5318
- _e("button", {
5318
+ we("button", {
5319
5319
  ref_for: !0,
5320
5320
  ref: (xe) => V(xe, ke, 0),
5321
5321
  type: "button",
@@ -5337,15 +5337,15 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5337
5337
  }, [
5338
5338
  l.timePickerInline ? (g(), W(be, { key: 1 }, [
5339
5339
  c.$slots["tp-inline-arrow-up"] ? ce(c.$slots, "tp-inline-arrow-up", { key: 0 }) : (g(), W(be, { key: 1 }, [
5340
- U[2] || (U[2] = _e("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1)),
5341
- U[3] || (U[3] = _e("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1))
5340
+ U[2] || (U[2] = we("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1)),
5341
+ U[3] || (U[3] = we("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1))
5342
5342
  ], 64))
5343
5343
  ], 64)) : (g(), W(be, { key: 0 }, [
5344
5344
  c.$slots["arrow-up"] ? ce(c.$slots, "arrow-up", { key: 0 }) : F("", !0),
5345
5345
  c.$slots["arrow-up"] ? F("", !0) : (g(), se(i(Rn), { key: 1 }))
5346
5346
  ], 64))
5347
5347
  ], 42, $i),
5348
- _e("button", {
5348
+ we("button", {
5349
5349
  ref_for: !0,
5350
5350
  ref: (xe) => V(xe, ke, 1),
5351
5351
  type: "button",
@@ -5373,7 +5373,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5373
5373
  Ye(Ce(M.value(B.type).text), 1)
5374
5374
  ], 64))
5375
5375
  ], 42, Oi),
5376
- _e("button", {
5376
+ we("button", {
5377
5377
  ref_for: !0,
5378
5378
  ref: (xe) => V(xe, ke, 2),
5379
5379
  type: "button",
@@ -5395,8 +5395,8 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5395
5395
  }, [
5396
5396
  l.timePickerInline ? (g(), W(be, { key: 1 }, [
5397
5397
  c.$slots["tp-inline-arrow-down"] ? ce(c.$slots, "tp-inline-arrow-down", { key: 0 }) : (g(), W(be, { key: 1 }, [
5398
- U[4] || (U[4] = _e("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1)),
5399
- U[5] || (U[5] = _e("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1))
5398
+ U[4] || (U[4] = we("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1)),
5399
+ U[5] || (U[5] = we("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1))
5400
5400
  ], 64))
5401
5401
  ], 64)) : (g(), W(be, { key: 0 }, [
5402
5402
  c.$slots["arrow-down"] ? ce(c.$slots, "arrow-down", { key: 0 }) : F("", !0),
@@ -5430,10 +5430,10 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5430
5430
  name: i(f)(_[B.type]),
5431
5431
  css: i(b)
5432
5432
  }, {
5433
- default: le(() => {
5433
+ default: re(() => {
5434
5434
  var $, Z;
5435
5435
  return [
5436
- _[B.type] ? (g(), se(Aa, {
5436
+ _[B.type] ? (g(), se(Pa, {
5437
5437
  key: 0,
5438
5438
  items: q(B.type),
5439
5439
  "is-last": c.autoApply && !i(m).keepActionRow,
@@ -5448,7 +5448,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5448
5448
  onToggle: (me) => u(B.type),
5449
5449
  onResetFlow: U[1] || (U[1] = (me) => c.$emit("reset-flow"))
5450
5450
  }, tt({
5451
- "button-icon": le(() => [
5451
+ "button-icon": re(() => [
5452
5452
  c.$slots["clock-icon"] ? ce(c.$slots, "clock-icon", { key: 0 }) : F("", !0),
5453
5453
  c.$slots["clock-icon"] ? F("", !0) : (g(), se(ia(c.timePickerInline ? i(da) : i(Vn)), { key: 1 }))
5454
5454
  ]),
@@ -5456,7 +5456,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5456
5456
  }, [
5457
5457
  c.$slots[`${B.type}-overlay-value`] ? {
5458
5458
  name: "item",
5459
- fn: le(({ item: me }) => [
5459
+ fn: re(({ item: me }) => [
5460
5460
  ce(c.$slots, `${B.type}-overlay-value`, {
5461
5461
  text: me.text,
5462
5462
  value: me.value
@@ -5466,7 +5466,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5466
5466
  } : void 0,
5467
5467
  c.$slots[`${B.type}-overlay-header`] ? {
5468
5468
  name: "header",
5469
- fn: le(() => [
5469
+ fn: re(() => [
5470
5470
  ce(c.$slots, `${B.type}-overlay-header`, {
5471
5471
  toggle: () => u(B.type)
5472
5472
  })
@@ -5508,11 +5508,11 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5508
5508
  "am-pm-change"
5509
5509
  ],
5510
5510
  setup(e, { expose: n, emit: a }) {
5511
- const t = a, l = e, { buildMatrix: r, setTimePicker: o } = Nt(), v = jt(), { defaultedTransitions: s, defaultedAriaLabels: k, defaultedTextInput: m, defaultedConfig: d, defaultedRange: f } = Be(l), { transitionName: b, showTransition: _ } = Ca(s), { hideNavigationButtons: h } = ja(), S = X(null), E = X(null), N = X([]), w = X(null), I = X(!1);
5511
+ const t = a, l = e, { buildMatrix: r, setTimePicker: o } = Nt(), v = Xt(), { defaultedTransitions: s, defaultedAriaLabels: k, defaultedTextInput: m, defaultedConfig: d, defaultedRange: f } = Be(l), { transitionName: b, showTransition: _ } = Aa(s), { hideNavigationButtons: h } = Qa(), S = j(null), E = j(null), N = j([]), w = j(null), I = j(!1);
5512
5512
  Je(() => {
5513
- t("mount"), !l.timePicker && l.arrowNavigation ? r([Xe(S.value)], "time") : o(!0, l.timePicker);
5513
+ t("mount"), !l.timePicker && l.arrowNavigation ? r([je(S.value)], "time") : o(!0, l.timePicker);
5514
5514
  });
5515
- const C = G(() => f.value.enabled && l.modelAuto ? Bl(l.internalModelValue) : !0), x = X(!1), y = (q) => ({
5515
+ const C = G(() => f.value.enabled && l.modelAuto ? Bl(l.internalModelValue) : !0), x = j(!1), y = (q) => ({
5516
5516
  hours: Array.isArray(l.hours) ? l.hours[q] : l.hours,
5517
5517
  minutes: Array.isArray(l.minutes) ? l.minutes[q] : l.minutes,
5518
5518
  seconds: Array.isArray(l.seconds) ? l.seconds[q] : l.seconds
@@ -5532,7 +5532,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5532
5532
  dp__btn: !0,
5533
5533
  dp__button: !0,
5534
5534
  dp__button_bottom: l.autoApply && !d.value.keepActionRow
5535
- })), re = dt(v, "timePicker"), pe = (q, T, ie) => f.value.enabled ? T === 0 ? [q, z.value[1][ie]] : [z.value[0][ie], q] : q, he = (q) => {
5535
+ })), le = dt(v, "timePicker"), pe = (q, T, ie) => f.value.enabled ? T === 0 ? [q, z.value[1][ie]] : [z.value[0][ie], q] : q, he = (q) => {
5536
5536
  t("update:hours", q);
5537
5537
  }, D = (q) => {
5538
5538
  t("update:minutes", q);
@@ -5551,7 +5551,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5551
5551
  return n({ toggleTimePicker: H }), (q, T) => {
5552
5552
  var ie;
5553
5553
  return g(), W("div", Ri, [
5554
- !q.timePicker && !q.timePickerInline ? Va((g(), W("button", {
5554
+ !q.timePicker && !q.timePickerInline ? Ia((g(), W("button", {
5555
5555
  key: 0,
5556
5556
  ref_key: "openTimePickerBtn",
5557
5557
  ref: S,
@@ -5560,20 +5560,20 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5560
5560
  "aria-label": (ie = i(k)) == null ? void 0 : ie.openTimePicker,
5561
5561
  tabindex: q.noOverlayFocus ? void 0 : 0,
5562
5562
  "data-test": "open-time-picker-btn",
5563
- onKeydown: T[0] || (T[0] = (j) => i(lt)(j, () => H(!0))),
5564
- onClick: T[1] || (T[1] = (j) => H(!0))
5563
+ onKeydown: T[0] || (T[0] = (X) => i(lt)(X, () => H(!0))),
5564
+ onClick: T[1] || (T[1] = (X) => H(!0))
5565
5565
  }, [
5566
5566
  q.$slots["clock-icon"] ? ce(q.$slots, "clock-icon", { key: 0 }) : F("", !0),
5567
5567
  q.$slots["clock-icon"] ? F("", !0) : (g(), se(i(Vn), { key: 1 }))
5568
5568
  ], 42, Ei)), [
5569
- [Ra, !i(h)(q.hideNavigation, "time")]
5569
+ [Va, !i(h)(q.hideNavigation, "time")]
5570
5570
  ]) : F("", !0),
5571
- Oe(sa, {
5571
+ Se(sa, {
5572
5572
  name: i(b)(x.value),
5573
5573
  css: i(_) && !q.timePickerInline
5574
5574
  }, {
5575
- default: le(() => {
5576
- var j, O;
5575
+ default: re(() => {
5576
+ var X, O;
5577
5577
  return [
5578
5578
  x.value || q.timePicker || q.timePickerInline ? (g(), W("div", {
5579
5579
  key: 0,
@@ -5586,10 +5586,10 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5586
5586
  "dp--overlay-relative": l.timePicker
5587
5587
  }),
5588
5588
  style: ot(q.timePicker ? { height: `${i(d).modeHeight}px` } : void 0),
5589
- "aria-label": (j = i(k)) == null ? void 0 : j.timePicker,
5589
+ "aria-label": (X = i(k)) == null ? void 0 : X.timePicker,
5590
5590
  tabindex: q.timePickerInline ? void 0 : 0
5591
5591
  }, [
5592
- _e("div", {
5592
+ we("div", {
5593
5593
  class: Me(
5594
5594
  q.timePickerInline ? "dp__time_picker_inline_container" : "dp__overlay_container dp__container_flex dp__time_picker_overlay_container"
5595
5595
  ),
@@ -5608,7 +5608,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5608
5608
  key: 1,
5609
5609
  class: Me(q.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
5610
5610
  }, [
5611
- (g(!0), W(be, null, Pe(z.value, (u, P) => Va((g(), se(Vi, Ge({
5611
+ (g(!0), W(be, null, Pe(z.value, (u, P) => Ia((g(), se(Vi, Ge({
5612
5612
  key: P,
5613
5613
  ref_for: !0
5614
5614
  }, {
@@ -5633,17 +5633,17 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5633
5633
  onOverlayOpened: oe,
5634
5634
  onAmPmChange: T[2] || (T[2] = (J) => q.$emit("am-pm-change", J))
5635
5635
  }), tt({ _: 2 }, [
5636
- Pe(i(re), (J, p) => ({
5636
+ Pe(i(le), (J, p) => ({
5637
5637
  name: J,
5638
- fn: le((ue) => [
5638
+ fn: re((ue) => [
5639
5639
  ce(q.$slots, J, Ge({ ref_for: !0 }, ue))
5640
5640
  ])
5641
5641
  }))
5642
5642
  ]), 1040, ["validate-time", "onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [
5643
- [Ra, P === 0 ? !0 : C.value]
5643
+ [Va, P === 0 ? !0 : C.value]
5644
5644
  ])), 128))
5645
5645
  ], 2)),
5646
- !q.timePicker && !q.timePickerInline ? Va((g(), W("button", {
5646
+ !q.timePicker && !q.timePickerInline ? Ia((g(), W("button", {
5647
5647
  key: 2,
5648
5648
  ref_key: "closeTimePickerBtn",
5649
5649
  ref: E,
@@ -5657,7 +5657,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5657
5657
  q.$slots["calendar-icon"] ? ce(q.$slots, "calendar-icon", { key: 0 }) : F("", !0),
5658
5658
  q.$slots["calendar-icon"] ? F("", !0) : (g(), se(i(da), { key: 1 }))
5659
5659
  ], 42, Li)), [
5660
- [Ra, !i(h)(q.hideNavigation, "time")]
5660
+ [Va, !i(h)(q.hideNavigation, "time")]
5661
5661
  ]) : F("", !0)
5662
5662
  ], 2)
5663
5663
  ], 14, Bi)) : F("", !0)
@@ -5682,7 +5682,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5682
5682
  C.minutes[z],
5683
5683
  C.seconds[z]
5684
5684
  ) : null, y = (z) => Yl(a.value[z], 0);
5685
- return !(Te(x(0), x(1)) && (la(x(0), y(1)) || Da(x(1), y(0))));
5685
+ return !(Te(x(0), x(1)) && (la(x(0), y(1)) || Ma(x(1), y(0))));
5686
5686
  }
5687
5687
  return !0;
5688
5688
  }, d = (w, I) => {
@@ -5733,7 +5733,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5733
5733
  }, Ni = (e, n) => {
5734
5734
  const a = () => {
5735
5735
  e.isTextInputDate && I();
5736
- }, { modelValue: t, time: l } = $a(e, n, a), { defaultedStartTime: r, defaultedRange: o, defaultedTz: v } = Be(e), { updateTimeValues: s, getSetDateTime: k, setTime: m, assignStartTime: d, disabledTimesConfig: f, validateTime: b } = tr(e, l, t, _);
5736
+ }, { modelValue: t, time: l } = Ca(e, n, a), { defaultedStartTime: r, defaultedRange: o, defaultedTz: v } = Be(e), { updateTimeValues: s, getSetDateTime: k, setTime: m, assignStartTime: d, disabledTimesConfig: f, validateTime: b } = tr(e, l, t, _);
5737
5737
  function _() {
5738
5738
  n("update-flow-step");
5739
5739
  }
@@ -5759,7 +5759,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5759
5759
  ];
5760
5760
  } else
5761
5761
  t.value = it(k(S()), v.value.timezone);
5762
- }, N = (x) => Array.isArray(x) ? [Xt(K(x[0])), Xt(K(x[1]))] : [Xt(x ?? K())], w = (x, y, z) => {
5762
+ }, N = (x) => Array.isArray(x) ? [jt(K(x[0])), jt(K(x[1]))] : [jt(x ?? K())], w = (x, y, z) => {
5763
5763
  m("hours", x), m("minutes", y), m("seconds", e.enableSeconds ? z : 0);
5764
5764
  }, I = () => {
5765
5765
  const [x, y] = N(t.value);
@@ -5803,7 +5803,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5803
5803
  "overlay-toggle"
5804
5804
  ],
5805
5805
  setup(e, { expose: n, emit: a }) {
5806
- const t = a, l = e, r = jt(), o = dt(r, "timePicker"), v = X(null), { time: s, modelValue: k, disabledTimesConfig: m, updateTime: d, validateTime: f } = Ni(l, t);
5806
+ const t = a, l = e, r = Xt(), o = dt(r, "timePicker"), v = j(null), { time: s, modelValue: k, disabledTimesConfig: m, updateTime: d, validateTime: f } = Ni(l, t);
5807
5807
  return Je(() => {
5808
5808
  l.shadow || t("mount", null);
5809
5809
  }), n({ getSidebarProps: () => ({
@@ -5813,12 +5813,12 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5813
5813
  }), toggleTimePicker: (b, _ = !1, h = "") => {
5814
5814
  var S;
5815
5815
  (S = v.value) == null || S.toggleTimePicker(b, _, h);
5816
- } }), (b, _) => (g(), se(Qa, {
5816
+ } }), (b, _) => (g(), se(Ua, {
5817
5817
  "multi-calendars": 0,
5818
5818
  stretch: ""
5819
5819
  }, {
5820
- default: le(() => [
5821
- Oe(er, Ge({
5820
+ default: re(() => [
5821
+ Se(er, Ge({
5822
5822
  ref_key: "tpRef",
5823
5823
  ref: v
5824
5824
  }, b.$props, {
@@ -5838,7 +5838,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5838
5838
  }), tt({ _: 2 }, [
5839
5839
  Pe(i(o), (h, S) => ({
5840
5840
  name: h,
5841
- fn: le((E) => [
5841
+ fn: re((E) => [
5842
5842
  ce(b.$slots, h, Ke(ut(E)))
5843
5843
  ])
5844
5844
  }))
@@ -5874,7 +5874,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5874
5874
  defaultedHighlight: m,
5875
5875
  propDates: d,
5876
5876
  defaultedUI: f
5877
- } = Be(l), { transitionName: b, showTransition: _ } = Ca(r), { buildMatrix: h } = Nt(), { handleMonthYearChange: S, isDisabled: E, updateMonthYear: N } = fi(l, t), { showLeftIcon: w, showRightIcon: I } = ja(), C = X(!1), x = X(!1), y = X(!1), z = X([null, null, null, null]);
5877
+ } = Be(l), { transitionName: b, showTransition: _ } = Aa(r), { buildMatrix: h } = Nt(), { handleMonthYearChange: S, isDisabled: E, updateMonthYear: N } = fi(l, t), { showLeftIcon: w, showRightIcon: I } = Qa(), C = j(!1), x = j(!1), y = j(!1), z = j([null, null, null, null]);
5878
5878
  Je(() => {
5879
5879
  t("mount");
5880
5880
  });
@@ -5884,7 +5884,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5884
5884
  const P = O === ft.month ? ft.year : ft.month;
5885
5885
  t("update-month-year", { [O]: u, [P]: l[P] }), O === ft.month ? Q(!0) : oe(!0);
5886
5886
  }
5887
- }), L = G(H(ft.month)), re = G(H(ft.year)), pe = G(() => (O) => ({
5887
+ }), L = G(H(ft.month)), le = G(H(ft.year)), pe = G(() => (O) => ({
5888
5888
  month: l.month,
5889
5889
  year: l.year,
5890
5890
  items: O === ft.month ? l.months : l.years,
@@ -5892,14 +5892,14 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5892
5892
  updateMonthYear: N,
5893
5893
  toggle: O === ft.month ? Q : oe
5894
5894
  })), he = G(() => l.months.find((u) => u.value === l.month) || { text: "", value: 0 }), D = G(() => oa(l.months, (O) => {
5895
- const u = l.month === O.value, P = Ta(
5895
+ const u = l.month === O.value, P = Da(
5896
5896
  O.value,
5897
5897
  Hl(l.year, d.value.minDate),
5898
5898
  Fl(l.year, d.value.maxDate)
5899
5899
  ) || s.value.months.includes(O.value), J = Ql(m.value, O.value, l.year);
5900
5900
  return { active: u, disabled: P, highlighted: J };
5901
5901
  })), Y = G(() => oa(l.years, (O) => {
5902
- const u = l.year === O.value, P = Ta(
5902
+ const u = l.year === O.value, P = Da(
5903
5903
  O.value,
5904
5904
  ua(d.value.minDate),
5905
5905
  ua(d.value.maxDate)
@@ -5914,7 +5914,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5914
5914
  }, q = (O) => {
5915
5915
  O || t("reset-flow");
5916
5916
  }, T = (O, u) => {
5917
- l.arrowNavigation && (z.value[u] = Xe(O), h(z.value, "monthYear"));
5917
+ l.arrowNavigation && (z.value[u] = je(O), h(z.value, "monthYear"));
5918
5918
  }, ie = G(() => {
5919
5919
  var O, u, P, J, p, ue;
5920
5920
  return [
@@ -5934,8 +5934,8 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5934
5934
  type: ft.year,
5935
5935
  index: 2,
5936
5936
  toggle: oe,
5937
- modelValue: re.value,
5938
- updateModelValue: (ge) => re.value = ge,
5937
+ modelValue: le.value,
5938
+ updateModelValue: (ge) => le.value = ge,
5939
5939
  text: Nl(l.year, l.locale),
5940
5940
  showSelectionGrid: x.value,
5941
5941
  items: Y.value,
@@ -5943,7 +5943,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5943
5943
  overlayLabel: ((ue = (p = o.value).yearPicker) == null ? void 0 : ue.call(p, !0)) ?? void 0
5944
5944
  }
5945
5945
  ];
5946
- }), j = G(() => l.disableYearSelect ? [ie.value[0]] : l.yearFirst ? [...ie.value].reverse() : ie.value);
5946
+ }), X = G(() => l.disableYearSelect ? [ie.value[0]] : l.yearFirst ? [...ie.value].reverse() : ie.value);
5947
5947
  return n({
5948
5948
  toggleMonthPicker: Q,
5949
5949
  toggleYearPicker: oe,
@@ -5957,8 +5957,8 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5957
5957
  O.$slots["top-extra"] ? (g(), W("div", zi, [
5958
5958
  ce(O.$slots, "top-extra", { value: O.internalModelValue })
5959
5959
  ])) : F("", !0),
5960
- _e("div", Ui, [
5961
- i(w)(i(v), e.instance) && !O.vertical ? (g(), se(ba, {
5960
+ we("div", Ui, [
5961
+ i(w)(i(v), e.instance) && !O.vertical ? (g(), se(ga, {
5962
5962
  key: 0,
5963
5963
  "aria-label": (P = i(o)) == null ? void 0 : P.prevMonth,
5964
5964
  disabled: i(E)(!1),
@@ -5967,21 +5967,21 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5967
5967
  onActivate: u[0] || (u[0] = (V) => i(S)(!1, !0)),
5968
5968
  onSetRef: u[1] || (u[1] = (V) => T(V, 0))
5969
5969
  }, {
5970
- default: le(() => [
5970
+ default: re(() => [
5971
5971
  O.$slots["arrow-left"] ? ce(O.$slots, "arrow-left", { key: 0 }) : F("", !0),
5972
5972
  O.$slots["arrow-left"] ? F("", !0) : (g(), se(i(Yn), { key: 1 }))
5973
5973
  ]),
5974
5974
  _: 3
5975
5975
  }, 8, ["aria-label", "disabled", "class"])) : F("", !0),
5976
- _e("div", {
5976
+ we("div", {
5977
5977
  class: Me(["dp__month_year_wrap", {
5978
5978
  dp__year_disable_select: O.disableYearSelect
5979
5979
  }])
5980
5980
  }, [
5981
- (g(!0), W(be, null, Pe(j.value, (V, ee) => (g(), W(be, {
5981
+ (g(!0), W(be, null, Pe(X.value, (V, ee) => (g(), W(be, {
5982
5982
  key: V.type
5983
5983
  }, [
5984
- _e("button", {
5984
+ we("button", {
5985
5985
  ref_for: !0,
5986
5986
  ref: (c) => T(c, ee + 1),
5987
5987
  type: "button",
@@ -6001,12 +6001,12 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6001
6001
  Ye(Ce(V.text), 1)
6002
6002
  ], 64))
6003
6003
  ], 42, Wi),
6004
- Oe(sa, {
6004
+ Se(sa, {
6005
6005
  name: i(b)(V.showSelectionGrid),
6006
6006
  css: i(_)
6007
6007
  }, {
6008
- default: le(() => [
6009
- V.showSelectionGrid ? (g(), se(Aa, {
6008
+ default: re(() => [
6009
+ V.showSelectionGrid ? (g(), se(Pa, {
6010
6010
  key: 0,
6011
6011
  items: V.items,
6012
6012
  "arrow-navigation": O.arrowNavigation,
@@ -6024,7 +6024,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6024
6024
  onSelected: V.updateModelValue,
6025
6025
  onToggle: V.toggle
6026
6026
  }, tt({
6027
- "button-icon": le(() => [
6027
+ "button-icon": re(() => [
6028
6028
  O.$slots["calendar-icon"] ? ce(O.$slots, "calendar-icon", { key: 0 }) : F("", !0),
6029
6029
  O.$slots["calendar-icon"] ? F("", !0) : (g(), se(i(da), { key: 1 }))
6030
6030
  ]),
@@ -6032,7 +6032,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6032
6032
  }, [
6033
6033
  O.$slots[`${V.type}-overlay-value`] ? {
6034
6034
  name: "item",
6035
- fn: le(({ item: c }) => [
6035
+ fn: re(({ item: c }) => [
6036
6036
  ce(O.$slots, `${V.type}-overlay-value`, {
6037
6037
  text: c.text,
6038
6038
  value: c.value
@@ -6042,14 +6042,14 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6042
6042
  } : void 0,
6043
6043
  O.$slots[`${V.type}-overlay`] ? {
6044
6044
  name: "overlay",
6045
- fn: le(() => [
6045
+ fn: re(() => [
6046
6046
  ce(O.$slots, `${V.type}-overlay`, Ge({ ref_for: !0 }, pe.value(V.type)))
6047
6047
  ]),
6048
6048
  key: "1"
6049
6049
  } : void 0,
6050
6050
  O.$slots[`${V.type}-overlay-header`] ? {
6051
6051
  name: "header",
6052
- fn: le(() => [
6052
+ fn: re(() => [
6053
6053
  ce(O.$slots, `${V.type}-overlay-header`, {
6054
6054
  toggle: V.toggle
6055
6055
  })
@@ -6062,7 +6062,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6062
6062
  }, 1032, ["name", "css"])
6063
6063
  ], 64))), 128))
6064
6064
  ], 2),
6065
- i(w)(i(v), e.instance) && O.vertical ? (g(), se(ba, {
6065
+ i(w)(i(v), e.instance) && O.vertical ? (g(), se(ga, {
6066
6066
  key: 1,
6067
6067
  "aria-label": (p = i(o)) == null ? void 0 : p.prevMonth,
6068
6068
  "el-name": "action-prev",
@@ -6070,13 +6070,13 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6070
6070
  class: Me((ue = i(f)) == null ? void 0 : ue.navBtnPrev),
6071
6071
  onActivate: u[2] || (u[2] = (V) => i(S)(!1, !0))
6072
6072
  }, {
6073
- default: le(() => [
6073
+ default: re(() => [
6074
6074
  O.$slots["arrow-up"] ? ce(O.$slots, "arrow-up", { key: 0 }) : F("", !0),
6075
6075
  O.$slots["arrow-up"] ? F("", !0) : (g(), se(i(Rn), { key: 1 }))
6076
6076
  ]),
6077
6077
  _: 3
6078
6078
  }, 8, ["aria-label", "disabled", "class"])) : F("", !0),
6079
- i(I)(i(v), e.instance) ? (g(), se(ba, {
6079
+ i(I)(i(v), e.instance) ? (g(), se(ga, {
6080
6080
  key: 2,
6081
6081
  ref: "rightIcon",
6082
6082
  "el-name": "action-next",
@@ -6086,7 +6086,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6086
6086
  onActivate: u[3] || (u[3] = (V) => i(S)(!0, !0)),
6087
6087
  onSetRef: u[4] || (u[4] = (V) => T(V, O.disableYearSelect ? 2 : 3))
6088
6088
  }, {
6089
- default: le(() => [
6089
+ default: re(() => [
6090
6090
  O.$slots[O.vertical ? "arrow-down" : "arrow-right"] ? ce(O.$slots, O.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : F("", !0),
6091
6091
  O.$slots[O.vertical ? "arrow-down" : "arrow-right"] ? F("", !0) : (g(), se(ia(O.vertical ? i(En) : i(In)), { key: 1 }))
6092
6092
  ]),
@@ -6097,10 +6097,10 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6097
6097
  ]);
6098
6098
  };
6099
6099
  }
6100
- }), Xi = {
6100
+ }), ji = {
6101
6101
  class: "dp__calendar_header",
6102
6102
  role: "row"
6103
- }, ji = {
6103
+ }, Xi = {
6104
6104
  key: 0,
6105
6105
  class: "dp__calendar_header_item",
6106
6106
  role: "gridcell"
@@ -6139,13 +6139,13 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6139
6139
  defaultedWeekNumbers: m,
6140
6140
  defaultedMultiDates: d,
6141
6141
  defaultedUI: f
6142
- } = Be(l), b = X(null), _ = X({
6142
+ } = Be(l), b = j(null), _ = j({
6143
6143
  bottom: "",
6144
6144
  left: "",
6145
6145
  transform: ""
6146
- }), h = X([]), S = X(null), E = X(!0), N = X(""), w = X({ startX: 0, endX: 0, startY: 0, endY: 0 }), I = X([]), C = X({ left: "50%" }), x = X(!1), y = G(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), z = G(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : Eu(l.formatLocale, l.locale, +l.weekStart));
6146
+ }), h = j([]), S = j(null), E = j(!0), N = j(""), w = j({ startX: 0, endX: 0, startY: 0, endY: 0 }), I = j([]), C = j({ left: "50%" }), x = j(!1), y = G(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), z = G(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : Eu(l.formatLocale, l.locale, +l.weekStart));
6147
6147
  Je(() => {
6148
- t("mount", { cmp: "calendar", refs: h }), v.value.noSwipe || S.value && (S.value.addEventListener("touchstart", T, { passive: !1 }), S.value.addEventListener("touchend", ie, { passive: !1 }), S.value.addEventListener("touchmove", j, { passive: !1 })), l.monthChangeOnScroll && S.value && S.value.addEventListener("wheel", P, { passive: !1 });
6148
+ t("mount", { cmp: "calendar", refs: h }), v.value.noSwipe || S.value && (S.value.addEventListener("touchstart", T, { passive: !1 }), S.value.addEventListener("touchend", ie, { passive: !1 }), S.value.addEventListener("touchmove", X, { passive: !1 })), l.monthChangeOnScroll && S.value && S.value.addEventListener("wheel", P, { passive: !1 });
6149
6149
  });
6150
6150
  const H = (V) => V ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", L = (V, ee) => {
6151
6151
  if (l.transitions) {
@@ -6154,7 +6154,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6154
6154
  E.value = !0;
6155
6155
  });
6156
6156
  }
6157
- }, re = G(
6157
+ }, le = G(
6158
6158
  () => ({
6159
6159
  ...f.value.calendar ?? {}
6160
6160
  })
@@ -6182,7 +6182,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6182
6182
  };
6183
6183
  }, Q = async (V, ee, c) => {
6184
6184
  var U, te, B;
6185
- const ke = Xe(h.value[ee][c]);
6185
+ const ke = je(h.value[ee][c]);
6186
6186
  ke && ((U = V.marker) != null && U.customPosition && (B = (te = V.marker) == null ? void 0 : te.tooltip) != null && B.length ? _.value = V.marker.customPosition(ke) : await M(ke, V), t("tooltip-open", V.marker));
6187
6187
  }, oe = async (V, ee, c) => {
6188
6188
  var U, te;
@@ -6195,7 +6195,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6195
6195
  w.value.startX = V.changedTouches[0].screenX, w.value.startY = V.changedTouches[0].screenY;
6196
6196
  }, ie = (V) => {
6197
6197
  w.value.endX = V.changedTouches[0].screenX, w.value.endY = V.changedTouches[0].screenY, O();
6198
- }, j = (V) => {
6198
+ }, X = (V) => {
6199
6199
  l.vertical && !l.inline && V.preventDefault();
6200
6200
  }, O = () => {
6201
6201
  const V = l.vertical ? "Y" : "X";
@@ -6217,14 +6217,14 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6217
6217
  return n({ triggerTransition: L }), (V, ee) => (g(), W("div", {
6218
6218
  class: Me(D.value)
6219
6219
  }, [
6220
- _e("div", {
6220
+ we("div", {
6221
6221
  ref_key: "calendarWrapRef",
6222
6222
  ref: S,
6223
- class: Me(re.value),
6223
+ class: Me(le.value),
6224
6224
  role: "grid"
6225
6225
  }, [
6226
- _e("div", Xi, [
6227
- V.weekNumbers ? (g(), W("div", ji, Ce(V.weekNumName), 1)) : F("", !0),
6226
+ we("div", ji, [
6227
+ V.weekNumbers ? (g(), W("div", Xi, Ce(V.weekNumName), 1)) : F("", !0),
6228
6228
  (g(!0), W(be, null, Pe(z.value, (c, U) => {
6229
6229
  var te, B;
6230
6230
  return g(), W("div", {
@@ -6245,12 +6245,12 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6245
6245
  ], 8, Gi);
6246
6246
  }), 128))
6247
6247
  ]),
6248
- ee[2] || (ee[2] = _e("div", { class: "dp__calendar_header_separator" }, null, -1)),
6249
- Oe(sa, {
6248
+ ee[2] || (ee[2] = we("div", { class: "dp__calendar_header_separator" }, null, -1)),
6249
+ Se(sa, {
6250
6250
  name: N.value,
6251
6251
  css: !!V.transitions
6252
6252
  }, {
6253
- default: le(() => [
6253
+ default: re(() => [
6254
6254
  E.value ? (g(), W("div", {
6255
6255
  key: 0,
6256
6256
  class: "dp__calendar",
@@ -6263,12 +6263,12 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6263
6263
  role: "row"
6264
6264
  }, [
6265
6265
  V.weekNumbers ? (g(), W("div", Ki, [
6266
- _e("div", Ji, Ce(p(c.days)), 1)
6266
+ we("div", Ji, Ce(p(c.days)), 1)
6267
6267
  ])) : F("", !0),
6268
6268
  (g(!0), W(be, null, Pe(c.days, (te, B) => {
6269
6269
  var ke, $, Z;
6270
6270
  return g(), W("div", {
6271
- id: i(Xl)(te.value),
6271
+ id: i(jl)(te.value),
6272
6272
  ref_for: !0,
6273
6273
  ref: (me) => u(me, U, B),
6274
6274
  key: B + U,
@@ -6279,7 +6279,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6279
6279
  "aria-label": ($ = (ke = i(s)) == null ? void 0 : ke.day) == null ? void 0 : $.call(ke, te),
6280
6280
  tabindex: !te.current && V.hideOffsetDates ? void 0 : 0,
6281
6281
  "data-test": te.value,
6282
- onClick: _a((me) => ue(me, te), ["prevent"]),
6282
+ onClick: wa((me) => ue(me, te), ["prevent"]),
6283
6283
  onTouchend: (me) => ue(me, te, !1),
6284
6284
  onKeydown: (me) => i(lt)(me, () => V.$emit("select-date", te)),
6285
6285
  onMouseenter: (me) => oe(te, U, B),
@@ -6287,7 +6287,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6287
6287
  onMousedown: (me) => We(te),
6288
6288
  onMouseup: ee[0] || (ee[0] = (me) => x.value = !1)
6289
6289
  }, [
6290
- _e("div", {
6290
+ we("div", {
6291
6291
  class: Me(["dp__cell_inner", te.classData])
6292
6292
  }, [
6293
6293
  V.$slots.day && Y.value(te) ? ce(V.$slots, "day", {
@@ -6333,14 +6333,14 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6333
6333
  day: te.value
6334
6334
  }) : F("", !0),
6335
6335
  V.$slots["marker-tooltip"] ? F("", !0) : (g(), W(be, { key: 1 }, [
6336
- _e("div", {
6336
+ we("div", {
6337
6337
  class: "dp__tooltip_mark",
6338
6338
  style: ot(me.color ? { backgroundColor: me.color } : {})
6339
6339
  }, null, 4),
6340
- _e("div", null, Ce(me.text), 1)
6340
+ we("div", null, Ce(me.text), 1)
6341
6341
  ], 64))
6342
6342
  ]))), 128)),
6343
- _e("div", {
6343
+ we("div", {
6344
6344
  class: "dp__arrow_bottom_tp",
6345
6345
  style: ot(C.value)
6346
6346
  }, null, 4)
@@ -6358,7 +6358,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6358
6358
  ], 2));
6359
6359
  }
6360
6360
  }), vl = (e) => Array.isArray(e), ts = (e, n, a, t) => {
6361
- const l = X([]), r = X(/* @__PURE__ */ new Date()), o = X(), v = () => T(e.isTextInputDate), { modelValue: s, calendars: k, time: m, today: d } = $a(e, n, v), {
6361
+ const l = j([]), r = j(/* @__PURE__ */ new Date()), o = j(), v = () => T(e.isTextInputDate), { modelValue: s, calendars: k, time: m, today: d } = Ca(e, n, v), {
6362
6362
  defaultedMultiCalendars: f,
6363
6363
  defaultedStartTime: b,
6364
6364
  defaultedRange: _,
@@ -6366,7 +6366,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6366
6366
  defaultedTz: S,
6367
6367
  propDates: E,
6368
6368
  defaultedMultiDates: N
6369
- } = Be(e), { validateMonthYearInRange: w, isDisabled: I, isDateRangeAllowed: C, checkMinMaxRange: x } = Ht(e), { updateTimeValues: y, getSetDateTime: z, setTime: H, assignStartTime: L, validateTime: re, disabledTimesConfig: pe } = tr(e, m, s, t), he = G(
6369
+ } = Be(e), { validateMonthYearInRange: w, isDisabled: I, isDateRangeAllowed: C, checkMinMaxRange: x } = Ht(e), { updateTimeValues: y, getSetDateTime: z, setTime: H, assignStartTime: L, validateTime: le, disabledTimesConfig: pe } = tr(e, m, s, t), he = G(
6370
6370
  () => (A) => k.value[A] ? k.value[A].month : 0
6371
6371
  ), D = G(
6372
6372
  () => (A) => k.value[A] ? k.value[A].year : 0
@@ -6388,15 +6388,15 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6388
6388
  if (s.value)
6389
6389
  return Array.isArray(s.value) ? (l.value = s.value, p(A)) : O(s.value, A);
6390
6390
  if (f.value.count && A && !e.startDate)
6391
- return j(K(), A);
6392
- }, ie = () => Array.isArray(s.value) && _.value.enabled ? De(s.value[0]) === De(s.value[1] ?? s.value[0]) : !1, j = (A = /* @__PURE__ */ new Date(), ne = !1) => {
6393
- if ((!f.value.count || !f.value.static || ne) && M(0, De(A), we(A)), f.value.count && (!f.value.solo || !s.value || ie()))
6391
+ return X(K(), A);
6392
+ }, ie = () => Array.isArray(s.value) && _.value.enabled ? De(s.value[0]) === De(s.value[1] ?? s.value[0]) : !1, X = (A = /* @__PURE__ */ new Date(), ne = !1) => {
6393
+ if ((!f.value.count || !f.value.static || ne) && M(0, De(A), _e(A)), f.value.count && (!f.value.solo || !s.value || ie()))
6394
6394
  for (let R = 1; R < f.value.count; R++) {
6395
6395
  const ae = Ie(K(), { month: he.value(R - 1), year: D.value(R - 1) }), de = fl(ae, { months: 1 });
6396
- k.value[R] = { month: De(de), year: we(de) };
6396
+ k.value[R] = { month: De(de), year: _e(de) };
6397
6397
  }
6398
6398
  }, O = (A, ne) => {
6399
- j(A), H("hours", At(A)), H("minutes", Lt(A)), H("seconds", na(A)), f.value.count && ne && We();
6399
+ X(A), H("hours", At(A)), H("minutes", Lt(A)), H("seconds", na(A)), f.value.count && ne && We();
6400
6400
  }, u = (A) => {
6401
6401
  if (f.value.count) {
6402
6402
  if (f.value.solo) return 0;
@@ -6405,7 +6405,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6405
6405
  }
6406
6406
  return 1;
6407
6407
  }, P = (A, ne) => {
6408
- A[1] && _.value.showLastInRange ? j(A[u(A)], ne) : j(A[0], ne);
6408
+ A[1] && _.value.showLastInRange ? X(A[u(A)], ne) : X(A[0], ne);
6409
6409
  const R = (ae, de) => [
6410
6410
  ae(A[0]),
6411
6411
  A[1] ? ae(A[1]) : m[de][1]
@@ -6423,25 +6423,25 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6423
6423
  J(ne, A), f.value.count && f.value.solo && We();
6424
6424
  }, ue = (A, ne) => {
6425
6425
  const R = Ie(K(), { month: he.value(ne), year: D.value(ne) }), ae = A < 0 ? gt(R, 1) : ra(R, 1);
6426
- w(De(ae), we(ae), A < 0, e.preventMinMaxNavigation) && (M(ne, De(ae), we(ae)), n("update-month-year", { instance: ne, month: De(ae), year: we(ae) }), f.value.count && !f.value.solo && ge(ne), a());
6426
+ w(De(ae), _e(ae), A < 0, e.preventMinMaxNavigation) && (M(ne, De(ae), _e(ae)), n("update-month-year", { instance: ne, month: De(ae), year: _e(ae) }), f.value.count && !f.value.solo && ge(ne), a());
6427
6427
  }, ge = (A) => {
6428
6428
  for (let ne = A - 1; ne >= 0; ne--) {
6429
6429
  const R = ra(Ie(K(), { month: he.value(ne + 1), year: D.value(ne + 1) }), 1);
6430
- M(ne, De(R), we(R));
6430
+ M(ne, De(R), _e(R));
6431
6431
  }
6432
6432
  for (let ne = A + 1; ne <= f.value.count - 1; ne++) {
6433
6433
  const R = gt(Ie(K(), { month: he.value(ne - 1), year: D.value(ne - 1) }), 1);
6434
- M(ne, De(R), we(R));
6434
+ M(ne, De(R), _e(R));
6435
6435
  }
6436
6436
  }, We = () => {
6437
6437
  if (Array.isArray(s.value) && s.value.length === 2) {
6438
6438
  const A = K(
6439
6439
  K(s.value[1] ? s.value[1] : gt(s.value[0], 1))
6440
- ), [ne, R] = [De(s.value[0]), we(s.value[0])], [ae, de] = [De(s.value[1]), we(s.value[1])];
6441
- (ne !== ae || ne === ae && R !== de) && f.value.solo && M(1, De(A), we(A));
6442
- } else s.value && !Array.isArray(s.value) && (M(0, De(s.value), we(s.value)), j(K()));
6440
+ ), [ne, R] = [De(s.value[0]), _e(s.value[0])], [ae, de] = [De(s.value[1]), _e(s.value[1])];
6441
+ (ne !== ae || ne === ae && R !== de) && f.value.solo && M(1, De(A), _e(A));
6442
+ } else s.value && !Array.isArray(s.value) && (M(0, De(s.value), _e(s.value)), X(K()));
6443
6443
  }, V = () => {
6444
- e.startDate && (M(0, De(K(e.startDate)), we(K(e.startDate))), f.value.count && ge(0));
6444
+ e.startDate && (M(0, De(K(e.startDate)), _e(K(e.startDate))), f.value.count && ge(0));
6445
6445
  }, ee = (A, ne) => {
6446
6446
  if (e.monthChangeOnScroll) {
6447
6447
  const R = (/* @__PURE__ */ new Date()).getTime() - r.value.getTime(), ae = Math.abs(A.deltaY);
@@ -6454,7 +6454,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6454
6454
  ue(A === "right" ? -1 : 1, ne);
6455
6455
  }, te = (A) => {
6456
6456
  if (E.value.markers)
6457
- return Ha(A.value, E.value.markers);
6457
+ return La(A.value, E.value.markers);
6458
6458
  }, B = (A, ne) => {
6459
6459
  switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
6460
6460
  case "prepend":
@@ -6470,13 +6470,13 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6470
6470
  }
6471
6471
  }, ke = (A, ne, R, ae) => {
6472
6472
  if (e.sixWeeks && A.length < 6) {
6473
- const de = 6 - A.length, at = (ne.getDay() + 7 - ae) % 7, mt = 6 - (R.getDay() + 7 - ae) % 7, [Ft, Sa] = B(at, mt);
6473
+ const de = 6 - A.length, at = (ne.getDay() + 7 - ae) % 7, mt = 6 - (R.getDay() + 7 - ae) % 7, [Ft, Oa] = B(at, mt);
6474
6474
  for (let ma = 1; ma <= de; ma++)
6475
- if (Sa ? !!(ma % 2) == Ft : Ft) {
6476
- const St = A[0].days[0], nn = $(ht(St.value, -7), De(ne));
6477
- A.unshift({ days: nn });
6475
+ if (Oa ? !!(ma % 2) == Ft : Ft) {
6476
+ const St = A[0].days[0], tn = $(ht(St.value, -7), De(ne));
6477
+ A.unshift({ days: tn });
6478
6478
  } else {
6479
- const St = A[A.length - 1], nn = St.days[St.days.length - 1], ar = $(ht(nn.value, 1), De(ne));
6479
+ const St = A[A.length - 1], tn = St.days[St.days.length - 1], ar = $(ht(tn.value, 1), De(ne));
6480
6480
  A.push({ days: ar });
6481
6481
  }
6482
6482
  }
@@ -6494,12 +6494,12 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6494
6494
  }
6495
6495
  return ae;
6496
6496
  }, Z = (A, ne) => {
6497
- const R = [], ae = new Date(ne, A), de = new Date(ne, A + 1, 0), at = e.weekStart, mt = bt(ae, { weekStartsOn: at }), Ft = (Sa) => {
6498
- const ma = $(Sa, A);
6497
+ const R = [], ae = new Date(ne, A), de = new Date(ne, A + 1, 0), at = e.weekStart, mt = bt(ae, { weekStartsOn: at }), Ft = (Oa) => {
6498
+ const ma = $(Oa, A);
6499
6499
  if (R.push({ days: ma }), !R[R.length - 1].days.some(
6500
6500
  (St) => Te(rt(St.value), rt(de))
6501
6501
  )) {
6502
- const St = ht(Sa, 7);
6502
+ const St = ht(Oa, 7);
6503
6503
  Ft(St);
6504
6504
  }
6505
6505
  };
@@ -6518,7 +6518,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6518
6518
  ];
6519
6519
  C(R) ? (ne && Ot(A.value), l.value = R) : n("invalid-date", A.value);
6520
6520
  }, Ot = (A) => {
6521
- const ne = De(K(A)), R = we(K(A));
6521
+ const ne = De(K(A)), R = _e(K(A));
6522
6522
  if (M(0, ne, R), f.value.count > 0)
6523
6523
  for (let ae = 1; ae < f.value.count; ae++) {
6524
6524
  const de = Wu(
@@ -6541,41 +6541,41 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6541
6541
  m.minutes[A],
6542
6542
  st(A !== 1)
6543
6543
  );
6544
- }, Ga = () => {
6544
+ }, ja = () => {
6545
6545
  var A, ne;
6546
6546
  l.value[0] && l.value[1] && +((A = l.value) == null ? void 0 : A[0]) > +((ne = l.value) == null ? void 0 : ne[1]) && (l.value.reverse(), n("range-start", l.value[0]), n("range-end", l.value[1]));
6547
- }, Oa = () => {
6548
- l.value.length && (l.value[0] && !l.value[1] ? va(0) : (va(0), va(1), t()), Ga(), s.value = l.value.slice(), Xa(l.value, n, e.autoApply, e.modelAuto));
6549
- }, Ka = (A, ne = !1) => {
6547
+ }, $a = () => {
6548
+ l.value.length && (l.value[0] && !l.value[1] ? va(0) : (va(0), va(1), t()), ja(), s.value = l.value.slice(), Wa(l.value, n, e.autoApply, e.modelAuto));
6549
+ }, Xa = (A, ne = !1) => {
6550
6550
  if (I(A.value) || !A.current && e.hideOffsetDates) return n("invalid-date", A.value);
6551
6551
  if (o.value = JSON.parse(JSON.stringify(A)), !_.value.enabled) return me(A);
6552
- vl(m.hours) && vl(m.minutes) && !N.value.enabled && (ca(A, ne), Oa());
6553
- }, Ja = (A, ne) => {
6552
+ vl(m.hours) && vl(m.minutes) && !N.value.enabled && (ca(A, ne), $a());
6553
+ }, Ga = (A, ne) => {
6554
6554
  var R;
6555
6555
  M(A, ne.month, ne.year, !0), f.value.count && !f.value.solo && ge(A), n("update-month-year", { instance: A, month: ne.month, year: ne.year }), a(f.value.solo ? A : void 0);
6556
6556
  const ae = (R = e.flow) != null && R.length ? e.flow[e.flowStep] : void 0;
6557
6557
  !ne.fromNav && (ae === et.month || ae === et.year) && t();
6558
- }, Za = (A, ne) => {
6558
+ }, Ka = (A, ne) => {
6559
6559
  Kl({
6560
6560
  value: A,
6561
6561
  modelValue: s,
6562
6562
  range: _.value.enabled,
6563
6563
  timezone: ne ? void 0 : S.value.timezone
6564
6564
  }), Q(), e.multiCalendars && ct().then(() => T(!0));
6565
- }, en = () => {
6565
+ }, Ja = () => {
6566
6566
  const A = Bn(K(), S.value);
6567
6567
  _.value.enabled ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = Ne(A, s.value[0]) ? [A, s.value[0]] : [s.value[0], A] : s.value = [A] : s.value = A, Q();
6568
- }, tn = () => {
6568
+ }, Za = () => {
6569
6569
  if (Array.isArray(s.value))
6570
6570
  if (N.value.enabled) {
6571
- const A = an();
6571
+ const A = en();
6572
6572
  s.value[s.value.length - 1] = z(A);
6573
6573
  } else
6574
6574
  s.value = s.value.map((A, ne) => A && z(A, ne));
6575
6575
  else
6576
6576
  s.value = z(s.value);
6577
6577
  n("time-update");
6578
- }, an = () => Array.isArray(s.value) && s.value.length ? s.value[s.value.length - 1] : null;
6578
+ }, en = () => Array.isArray(s.value) && s.value.length ? s.value[s.value.length - 1] : null;
6579
6579
  return {
6580
6580
  calendars: k,
6581
6581
  modelValue: s,
@@ -6584,20 +6584,20 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6584
6584
  time: m,
6585
6585
  disabledTimesConfig: pe,
6586
6586
  today: d,
6587
- validateTime: re,
6587
+ validateTime: le,
6588
6588
  getCalendarDays: Z,
6589
6589
  getMarker: te,
6590
6590
  handleScroll: ee,
6591
6591
  handleSwipe: U,
6592
6592
  handleArrow: c,
6593
- selectDate: Ka,
6594
- updateMonthYear: Ja,
6595
- presetDate: Za,
6596
- selectCurrentDate: en,
6593
+ selectDate: Xa,
6594
+ updateMonthYear: Ga,
6595
+ presetDate: Ka,
6596
+ selectCurrentDate: Ja,
6597
6597
  updateTime: (A, ne = !0, R = !1) => {
6598
- y(A, ne, R, tn);
6598
+ y(A, ne, R, Za);
6599
6599
  },
6600
- assignMonthAndYear: j
6600
+ assignMonthAndYear: X
6601
6601
  };
6602
6602
  }, as = { key: 0 }, ns = /* @__PURE__ */ Ve({
6603
6603
  __name: "DatePicker",
@@ -6649,7 +6649,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6649
6649
  selectCurrentDate: C,
6650
6650
  updateTime: x,
6651
6651
  assignMonthAndYear: y
6652
- } = ts(l, t, ie, j), z = jt(), { setHoverDate: H, getDayClassData: L, clearHoverDate: re } = gs(s, l), { defaultedMultiCalendars: pe } = Be(l), he = X([]), D = X([]), Y = X(null), M = dt(z, "calendar"), Q = dt(z, "monthYear"), oe = dt(z, "timePicker"), q = (ee) => {
6652
+ } = ts(l, t, ie, X), z = Xt(), { setHoverDate: H, getDayClassData: L, clearHoverDate: le } = gs(s, l), { defaultedMultiCalendars: pe } = Be(l), he = j([]), D = j([]), Y = j(null), M = dt(z, "calendar"), Q = dt(z, "monthYear"), oe = dt(z, "timePicker"), q = (ee) => {
6653
6653
  l.shadow || t("mount", ee);
6654
6654
  };
6655
6655
  Qe(
@@ -6675,7 +6675,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6675
6675
  var c;
6676
6676
  ee || ee === 0 ? (c = D.value[ee]) == null || c.triggerTransition(o.value(ee), v.value(ee)) : D.value.forEach((U, te) => U.triggerTransition(o.value(te), v.value(te)));
6677
6677
  }
6678
- function j() {
6678
+ function X() {
6679
6679
  t("update-flow-step");
6680
6680
  }
6681
6681
  const O = (ee, c = !1) => {
@@ -6698,7 +6698,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6698
6698
  current: De(B) === o.value(0),
6699
6699
  text: "",
6700
6700
  classData: {}
6701
- }), (U = document.getElementById(Xl(ke))) == null || U.focus();
6701
+ }), (U = document.getElementById(jl(ke))) == null || U.focus();
6702
6702
  }
6703
6703
  }, ue = (ee) => {
6704
6704
  var c;
@@ -6711,7 +6711,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6711
6711
  t("overlay-toggle", { open: !1, overlay: ee }), t("focus-menu");
6712
6712
  };
6713
6713
  return n({
6714
- clearHoverDate: re,
6714
+ clearHoverDate: le,
6715
6715
  presetDate: I,
6716
6716
  selectCurrentDate: C,
6717
6717
  toggleMonthPicker: u,
@@ -6733,11 +6733,11 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6733
6733
  changeYear: ge,
6734
6734
  selectWeekDate: p
6735
6735
  }), (ee, c) => (g(), W(be, null, [
6736
- Oe(Qa, {
6736
+ Se(Ua, {
6737
6737
  "multi-calendars": i(pe).count,
6738
6738
  collapse: ee.collapse
6739
6739
  }, {
6740
- default: le(({ instance: U, index: te }) => [
6740
+ default: re(({ instance: U, index: te }) => [
6741
6741
  ee.disableMonthYearSelect ? F("", !0) : (g(), se(Qi, Ge({
6742
6742
  key: 0,
6743
6743
  ref: (B) => {
@@ -6757,12 +6757,12 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6757
6757
  }), tt({ _: 2 }, [
6758
6758
  Pe(i(Q), (B, ke) => ({
6759
6759
  name: B,
6760
- fn: le(($) => [
6760
+ fn: re(($) => [
6761
6761
  ce(ee.$slots, B, Ke(ut($)))
6762
6762
  ])
6763
6763
  }))
6764
6764
  ]), 1040, ["months", "years", "month", "year", "instance", "onUpdateMonthYear"])),
6765
- Oe(es, Ge({
6765
+ Se(es, Ge({
6766
6766
  ref: (B) => {
6767
6767
  B && (D.value[te] = B);
6768
6768
  },
@@ -6783,7 +6783,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6783
6783
  }), tt({ _: 2 }, [
6784
6784
  Pe(i(M), (B, ke) => ({
6785
6785
  name: B,
6786
- fn: le(($) => [
6786
+ fn: re(($) => [
6787
6787
  ce(ee.$slots, B, Ke(ut({ ...$ })))
6788
6788
  ])
6789
6789
  }))
@@ -6814,7 +6814,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6814
6814
  }), tt({ _: 2 }, [
6815
6815
  Pe(i(oe), (U, te) => ({
6816
6816
  name: U,
6817
- fn: le((B) => [
6817
+ fn: re((B) => [
6818
6818
  ce(ee.$slots, U, Ke(ut(B)))
6819
6819
  ])
6820
6820
  }))
@@ -6823,7 +6823,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6823
6823
  ], 64));
6824
6824
  }
6825
6825
  }), ls = (e, n) => {
6826
- const a = X(), {
6826
+ const a = j(), {
6827
6827
  defaultedMultiCalendars: t,
6828
6828
  defaultedConfig: l,
6829
6829
  defaultedHighlight: r,
@@ -6831,7 +6831,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6831
6831
  propDates: v,
6832
6832
  defaultedFilters: s,
6833
6833
  defaultedMultiDates: k
6834
- } = Be(e), { modelValue: m, year: d, month: f, calendars: b } = $a(e, n), { isDisabled: _ } = Ht(e), { selectYear: h, groupedYears: S, showYearPicker: E, isDisabled: N, toggleYearPicker: w, handleYearSelect: I, handleYear: C } = Zl({
6834
+ } = Be(e), { modelValue: m, year: d, month: f, calendars: b } = Ca(e, n), { isDisabled: _ } = Ht(e), { selectYear: h, groupedYears: S, showYearPicker: E, isDisabled: N, toggleYearPicker: w, handleYearSelect: I, handleYear: C } = Zl({
6835
6835
  modelValue: m,
6836
6836
  multiCalendars: t,
6837
6837
  range: o,
@@ -6847,23 +6847,23 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6847
6847
  if (o.value.enabled) {
6848
6848
  if (Array.isArray(m.value)) {
6849
6849
  const M = Te(Y, m.value[0]) || Te(Y, m.value[1]);
6850
- return Ua(m.value, a.value, Y) && !M;
6850
+ return qa(m.value, a.value, Y) && !M;
6851
6851
  }
6852
6852
  return !1;
6853
6853
  }
6854
6854
  return !1;
6855
- }, H = (Y, M) => Y.quarter === Kn(M) && Y.year === we(M), L = (Y) => typeof r.value == "function" ? r.value({ quarter: Kn(Y), year: we(Y) }) : !!r.value.quarters.find((M) => H(M, Y)), re = G(() => (Y) => {
6855
+ }, H = (Y, M) => Y.quarter === Kn(M) && Y.year === _e(M), L = (Y) => typeof r.value == "function" ? r.value({ quarter: Kn(Y), year: _e(Y) }) : !!r.value.quarters.find((M) => H(M, Y)), le = G(() => (Y) => {
6856
6856
  const M = Ie(/* @__PURE__ */ new Date(), { year: d.value(Y) });
6857
6857
  return Er({
6858
- start: Ma(M),
6858
+ start: xa(M),
6859
6859
  end: kl(M)
6860
6860
  }).map((Q) => {
6861
- const oe = Wt(Q), q = Jn(Q), T = _(Q), ie = z(oe), j = L(oe);
6861
+ const oe = Wt(Q), q = Jn(Q), T = _(Q), ie = z(oe), X = L(oe);
6862
6862
  return {
6863
6863
  text: x(oe, q),
6864
6864
  value: oe,
6865
6865
  active: y.value(oe),
6866
- highlighted: j,
6866
+ highlighted: X,
6867
6867
  disabled: T,
6868
6868
  isBetween: ie
6869
6869
  };
@@ -6871,7 +6871,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6871
6871
  }), pe = (Y) => {
6872
6872
  qn(Y, m, k.value.limit), n("auto-apply", !0);
6873
6873
  }, he = (Y) => {
6874
- m.value = zn(m, Y, n), Xa(m.value, n, e.autoApply, e.modelAuto);
6874
+ m.value = zn(m, Y, n), Wa(m.value, n, e.autoApply, e.modelAuto);
6875
6875
  }, D = (Y) => {
6876
6876
  m.value = Y, n("auto-apply");
6877
6877
  };
@@ -6881,7 +6881,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6881
6881
  groupedYears: S,
6882
6882
  year: d,
6883
6883
  isDisabled: N,
6884
- quarters: re,
6884
+ quarters: le,
6885
6885
  showYearPicker: E,
6886
6886
  modelValue: m,
6887
6887
  setHoverDate: (Y) => {
@@ -6915,7 +6915,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6915
6915
  "update-month-year"
6916
6916
  ],
6917
6917
  setup(e, { expose: n, emit: a }) {
6918
- const t = a, l = e, r = jt(), o = dt(r, "yearMode"), {
6918
+ const t = a, l = e, r = Xt(), o = dt(r, "yearMode"), {
6919
6919
  defaultedMultiCalendars: v,
6920
6920
  defaultedConfig: s,
6921
6921
  groupedYears: k,
@@ -6936,13 +6936,13 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6936
6936
  selectQuarter: S,
6937
6937
  handleYearSelect: N,
6938
6938
  handleYear: w
6939
- }) }), (I, C) => (g(), se(Qa, {
6939
+ }) }), (I, C) => (g(), se(Ua, {
6940
6940
  "multi-calendars": i(v).count,
6941
6941
  collapse: I.collapse,
6942
6942
  stretch: ""
6943
6943
  }, {
6944
- default: le(({ instance: x }) => [
6945
- _e("div", {
6944
+ default: re(({ instance: x }) => [
6945
+ we("div", {
6946
6946
  class: "dp-quarter-picker-wrap",
6947
6947
  style: ot({ minHeight: `${i(s).modeHeight}px` })
6948
6948
  }, [
@@ -6950,8 +6950,8 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6950
6950
  key: 0,
6951
6951
  value: I.internalModelValue
6952
6952
  }) : F("", !0),
6953
- _e("div", null, [
6954
- Oe(Gl, Ge(I.$props, {
6953
+ we("div", null, [
6954
+ Se(Gl, Ge(I.$props, {
6955
6955
  items: i(k)(x),
6956
6956
  instance: x,
6957
6957
  "show-year-picker": i(_)[x],
@@ -6963,15 +6963,15 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6963
6963
  }), tt({ _: 2 }, [
6964
6964
  Pe(i(o), (y, z) => ({
6965
6965
  name: y,
6966
- fn: le((H) => [
6966
+ fn: re((H) => [
6967
6967
  ce(I.$slots, y, Ke(ut(H)))
6968
6968
  ])
6969
6969
  }))
6970
6970
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
6971
6971
  ]),
6972
- _e("div", rs, [
6972
+ we("div", rs, [
6973
6973
  (g(!0), W(be, null, Pe(i(f)(x), (y, z) => (g(), W("div", { key: z }, [
6974
- _e("button", {
6974
+ we("button", {
6975
6975
  type: "button",
6976
6976
  class: Me(["dp--qr-btn", {
6977
6977
  "dp--qr-btn-active": y.active,
@@ -7020,7 +7020,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7020
7020
  },
7021
7021
  __name: "DatepickerMenu",
7022
7022
  props: {
7023
- ...Wa,
7023
+ ...za,
7024
7024
  shadow: { type: Boolean, default: !1 },
7025
7025
  openOnTop: { type: Boolean, default: !1 },
7026
7026
  internalModelValue: { type: [Date, Array], default: null },
@@ -7053,7 +7053,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7053
7053
  "overlay-toggle"
7054
7054
  ],
7055
7055
  setup(e, { expose: n, emit: a }) {
7056
- const t = a, l = e, r = X(null), o = G(() => {
7056
+ const t = a, l = e, r = j(null), o = G(() => {
7057
7057
  const { openOnTop: $, ...Z } = l;
7058
7058
  return {
7059
7059
  ...Z,
@@ -7062,11 +7062,11 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7062
7062
  noOverlayFocus: l.noOverlayFocus,
7063
7063
  menuWrapRef: r.value
7064
7064
  };
7065
- }), { setMenuFocused: v, setShiftKey: s, control: k } = jl(), m = jt(), { defaultedTextInput: d, defaultedInline: f, defaultedConfig: b, defaultedUI: _ } = Be(l), h = X(null), S = X(0), E = X(null), N = X(!1), w = X(null);
7065
+ }), { setMenuFocused: v, setShiftKey: s, control: k } = Xl(), m = Xt(), { defaultedTextInput: d, defaultedInline: f, defaultedConfig: b, defaultedUI: _ } = Be(l), h = j(null), S = j(0), E = j(null), N = j(!1), w = j(null);
7066
7066
  Je(() => {
7067
7067
  if (!l.shadow) {
7068
7068
  N.value = !0, I(), window.addEventListener("resize", I);
7069
- const $ = Xe(r);
7069
+ const $ = je(r);
7070
7070
  if ($ && !d.value.enabled && !f.value.enabled && (v(!0), M()), $) {
7071
7071
  const Z = (me) => {
7072
7072
  b.value.allowPreventDefault && me.preventDefault(), Et(me, b.value, !0);
@@ -7074,26 +7074,26 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7074
7074
  $.addEventListener("pointerdown", Z), $.addEventListener("mousedown", Z);
7075
7075
  }
7076
7076
  }
7077
- }), Fa(() => {
7077
+ }), Na(() => {
7078
7078
  window.removeEventListener("resize", I);
7079
7079
  });
7080
7080
  const I = () => {
7081
- const $ = Xe(E);
7081
+ const $ = je(E);
7082
7082
  $ && (S.value = $.getBoundingClientRect().width);
7083
- }, { arrowRight: C, arrowLeft: x, arrowDown: y, arrowUp: z } = Nt(), { flowStep: H, updateFlowStep: L, childMount: re, resetFlow: pe, handleFlow: he } = bs(l, t, w), D = G(() => l.monthPicker ? Ti : l.yearPicker ? Ai : l.timePicker ? Hi : l.quarterPicker ? us : ns), Y = G(() => {
7083
+ }, { arrowRight: C, arrowLeft: x, arrowDown: y, arrowUp: z } = Nt(), { flowStep: H, updateFlowStep: L, childMount: le, resetFlow: pe, handleFlow: he } = bs(l, t, w), D = G(() => l.monthPicker ? Ti : l.yearPicker ? Ai : l.timePicker ? Hi : l.quarterPicker ? us : ns), Y = G(() => {
7084
7084
  var $;
7085
7085
  if (b.value.arrowLeft) return b.value.arrowLeft;
7086
7086
  const Z = ($ = r.value) == null ? void 0 : $.getBoundingClientRect(), me = l.getInputRect();
7087
7087
  return (me == null ? void 0 : me.width) < (S == null ? void 0 : S.value) && (me == null ? void 0 : me.left) <= ((Z == null ? void 0 : Z.left) ?? 0) ? `${(me == null ? void 0 : me.width) / 2}px` : (me == null ? void 0 : me.right) >= ((Z == null ? void 0 : Z.right) ?? 0) && (me == null ? void 0 : me.width) < (S == null ? void 0 : S.value) ? `${(S == null ? void 0 : S.value) - (me == null ? void 0 : me.width) / 2}px` : "50%";
7088
7088
  }), M = () => {
7089
- const $ = Xe(r);
7089
+ const $ = je(r);
7090
7090
  $ && $.focus({ preventScroll: !0 });
7091
7091
  }, Q = G(() => {
7092
7092
  var $;
7093
7093
  return (($ = w.value) == null ? void 0 : $.getSidebarProps()) || {};
7094
7094
  }), oe = () => {
7095
7095
  l.openOnTop && t("recalculate-position");
7096
- }, q = dt(m, "action"), T = G(() => l.monthPicker || l.yearPicker ? dt(m, "monthYear") : l.timePicker ? dt(m, "timePicker") : dt(m, "shared")), ie = G(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), j = G(() => ({
7096
+ }, q = dt(m, "action"), T = G(() => l.monthPicker || l.yearPicker ? dt(m, "monthYear") : l.timePicker ? dt(m, "timePicker") : dt(m, "shared")), ie = G(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), X = G(() => ({
7097
7097
  dp__menu_disabled: l.disabled,
7098
7098
  dp__menu_readonly: l.readonly,
7099
7099
  "dp-menu-loading": l.loading
@@ -7182,10 +7182,10 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7182
7182
  }, [
7183
7183
  ($.disabled || $.readonly) && i(f).enabled || $.loading ? (g(), W("div", {
7184
7184
  key: 0,
7185
- class: Me(j.value)
7185
+ class: Me(X.value)
7186
7186
  }, [
7187
7187
  $.loading ? (g(), W("div", ss, Z[19] || (Z[19] = [
7188
- _e("span", { class: "dp--menu-loader" }, null, -1)
7188
+ we("span", { class: "dp--menu-loader" }, null, -1)
7189
7189
  ]))) : F("", !0)
7190
7190
  ], 2)) : F("", !0),
7191
7191
  $.$slots["menu-header"] ? (g(), W("div", ds, [
@@ -7195,7 +7195,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7195
7195
  key: 2,
7196
7196
  class: Me(ie.value)
7197
7197
  }, null, 2)) : F("", !0),
7198
- _e("div", {
7198
+ we("div", {
7199
7199
  ref_key: "innerMenuRef",
7200
7200
  ref: E,
7201
7201
  class: Me({
@@ -7223,12 +7223,12 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7223
7223
  style: ot(ye.style || {}),
7224
7224
  class: Me(["dp__btn dp--preset-range", { "dp--preset-range-collapsed": e.collapse }]),
7225
7225
  "data-test": ye.testId ?? void 0,
7226
- onClick: _a((_t) => c(ye.value, ye.noTz), ["prevent"]),
7226
+ onClick: wa((_t) => c(ye.value, ye.noTz), ["prevent"]),
7227
7227
  onKeydown: (_t) => i(lt)(_t, () => c(ye.value, ye.noTz), !0)
7228
7228
  }, Ce(ye.label), 47, vs))
7229
7229
  ], 64))), 128))
7230
7230
  ], 2)) : F("", !0),
7231
- _e("div", {
7231
+ we("div", {
7232
7232
  ref_key: "calendarWrapperRef",
7233
7233
  ref: h,
7234
7234
  class: "dp__instance_calendar",
@@ -7239,7 +7239,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7239
7239
  ref: w
7240
7240
  }, o.value, {
7241
7241
  "flow-step": i(H),
7242
- onMount: i(re),
7242
+ onMount: i(le),
7243
7243
  onUpdateFlowStep: i(L),
7244
7244
  onResetFlow: i(pe),
7245
7245
  onFocusMenu: M,
@@ -7264,7 +7264,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7264
7264
  }), tt({ _: 2 }, [
7265
7265
  Pe(T.value, (ye, Ot) => ({
7266
7266
  name: ye,
7267
- fn: le((_t) => [
7267
+ fn: re((_t) => [
7268
7268
  ce($.$slots, ye, Ke(ut({ ..._t })))
7269
7269
  ])
7270
7270
  }))
@@ -7292,7 +7292,7 @@ const Dn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7292
7292
  }), tt({ _: 2 }, [
7293
7293
  Pe(i(q), (ye, Ot) => ({
7294
7294
  name: ye,
7295
- fn: le((_t) => [
7295
+ fn: re((_t) => [
7296
7296
  ce($.$slots, ye, Ke(ut({ ..._t })))
7297
7297
  ])
7298
7298
  }))
@@ -7312,10 +7312,10 @@ const fs = ({
7312
7312
  props: o,
7313
7313
  slots: v
7314
7314
  }) => {
7315
- const { defaultedConfig: s } = Be(o), k = X({}), m = X(!1), d = X({
7315
+ const { defaultedConfig: s } = Be(o), k = j({}), m = j(!1), d = j({
7316
7316
  top: "0",
7317
7317
  left: "0"
7318
- }), f = X(!1), b = wa(o, "teleportCenter");
7318
+ }), f = j(!1), b = ba(o, "teleportCenter");
7319
7319
  Qe(b, () => {
7320
7320
  d.value = JSON.parse(JSON.stringify({})), C();
7321
7321
  });
@@ -7340,7 +7340,7 @@ const fs = ({
7340
7340
  }, w = () => {
7341
7341
  d.value.left = "50%", d.value.top = "50%", d.value.transform = "translate(-50%, -50%)", d.value.position = "fixed", delete d.value.opacity;
7342
7342
  }, I = () => {
7343
- const M = Xe(a), { top: Q, left: oe, transform: q } = o.altPosition(M);
7343
+ const M = je(a), { top: Q, left: oe, transform: q } = o.altPosition(M);
7344
7344
  d.value = { top: `${Q}px`, left: `${oe}px`, transform: q ?? "" };
7345
7345
  }, C = (M = !0) => {
7346
7346
  var Q;
@@ -7375,16 +7375,16 @@ const fs = ({
7375
7375
  }
7376
7376
  }
7377
7377
  }, L = () => {
7378
- const M = Xe(a);
7378
+ const M = je(a);
7379
7379
  if (M) {
7380
7380
  const { height: Q } = k.value, { top: oe, height: q } = M.getBoundingClientRect(), T = window.innerHeight - oe - q, ie = oe;
7381
7381
  return Q <= T ? zt.bottom : Q > T && Q <= ie ? zt.top : T >= ie ? zt.bottom : zt.top;
7382
7382
  }
7383
7383
  return zt.bottom;
7384
- }, re = (M) => L() === zt.bottom ? y(M) : z(M), pe = () => {
7385
- const M = Xe(a);
7384
+ }, le = (M) => L() === zt.bottom ? y(M) : z(M), pe = () => {
7385
+ const M = je(a);
7386
7386
  if (M)
7387
- return o.autoPosition ? re(M) : y(M);
7387
+ return o.autoPosition ? le(M) : y(M);
7388
7388
  }, he = function(M) {
7389
7389
  if (M) {
7390
7390
  const Q = M.scrollHeight > M.clientHeight, oe = window.getComputedStyle(M).overflowY.indexOf("hidden") !== -1;
@@ -7415,11 +7415,11 @@ const fs = ({
7415
7415
  getScrollableParent: D,
7416
7416
  shadowRender: (M, Q) => {
7417
7417
  var oe, q, T;
7418
- const ie = document.createElement("div"), j = (oe = Xe(a)) == null ? void 0 : oe.getBoundingClientRect();
7418
+ const ie = document.createElement("div"), X = (oe = je(a)) == null ? void 0 : oe.getBoundingClientRect();
7419
7419
  ie.setAttribute("id", "dp--temp-container");
7420
7420
  const O = (q = t.value) != null && q.clientWidth ? t.value : document.body;
7421
7421
  O.append(ie);
7422
- const u = Y(j), P = s.value.shadowDom ? Object.keys(v).filter(
7422
+ const u = Y(X), P = s.value.shadowDom ? Object.keys(v).filter(
7423
7423
  (p) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(p)
7424
7424
  ) : Object.keys(v), J = or(
7425
7425
  M,
@@ -7492,18 +7492,18 @@ const fs = ({
7492
7492
  }), a != null && a.length && a.forEach((l) => {
7493
7493
  l.slot && t.push(l.slot);
7494
7494
  }), t;
7495
- }, Ca = (e) => {
7495
+ }, Aa = (e) => {
7496
7496
  const n = G(() => (t) => e.value ? t ? e.value.open : e.value.close : ""), a = G(() => (t) => e.value ? t ? e.value.menuAppearTop : e.value.menuAppearBottom : "");
7497
7497
  return { transitionName: n, showTransition: !!e.value, menuTransition: a };
7498
- }, $a = (e, n, a) => {
7499
- const { defaultedRange: t, defaultedTz: l } = Be(e), r = K(it(K(), l.value.timezone)), o = X([{ month: De(r), year: we(r) }]), v = (f) => {
7498
+ }, Ca = (e, n, a) => {
7499
+ const { defaultedRange: t, defaultedTz: l } = Be(e), r = K(it(K(), l.value.timezone)), o = j([{ month: De(r), year: _e(r) }]), v = (f) => {
7500
7500
  const b = {
7501
7501
  hours: At(r),
7502
7502
  minutes: Lt(r),
7503
7503
  seconds: 0
7504
7504
  };
7505
7505
  return t.value.enabled ? [b[f], b[f]] : b[f];
7506
- }, s = Pa({
7506
+ }, s = Ta({
7507
7507
  hours: v("hours"),
7508
7508
  minutes: v("minutes"),
7509
7509
  seconds: v("seconds")
@@ -7548,7 +7548,7 @@ const fs = ({
7548
7548
  defaultedTz: o,
7549
7549
  propDates: v,
7550
7550
  defaultedRange: s
7551
- } = Be(n), { isDisabled: k } = Ht(n), m = X(null), d = X(it(/* @__PURE__ */ new Date(), o.value.timezone)), f = (u) => {
7551
+ } = Be(n), { isDisabled: k } = Ht(n), m = j(null), d = j(it(/* @__PURE__ */ new Date(), o.value.timezone)), f = (u) => {
7552
7552
  !u.current && n.hideOffsetDates || (m.value = u.value);
7553
7553
  }, b = () => {
7554
7554
  m.value = null;
@@ -7595,11 +7595,11 @@ const fs = ({
7595
7595
  return !1;
7596
7596
  }
7597
7597
  return !1;
7598
- }, y = (u) => Ua(e.value, m.value, u.value), z = () => n.modelAuto && Array.isArray(n.internalModelValue) ? !!n.internalModelValue[0] : !1, H = () => n.modelAuto ? Bl(n.internalModelValue) : !0, L = (u) => {
7598
+ }, y = (u) => qa(e.value, m.value, u.value), z = () => n.modelAuto && Array.isArray(n.internalModelValue) ? !!n.internalModelValue[0] : !1, H = () => n.modelAuto ? Bl(n.internalModelValue) : !0, L = (u) => {
7599
7599
  if (n.weekPicker) return !1;
7600
7600
  const P = s.value.enabled ? !E(u) && !E(u, !1) : !0;
7601
7601
  return !k(u.value) && !w(u) && !(!u.current && n.hideOffsetDates) && P;
7602
- }, re = (u) => s.value.enabled ? n.modelAuto ? z() && w(u) : !1 : w(u), pe = (u) => r.value ? qu(u.value, v.value.highlight) : !1, he = (u) => {
7602
+ }, le = (u) => s.value.enabled ? n.modelAuto ? z() && w(u) : !1 : w(u), pe = (u) => r.value ? qu(u.value, v.value.highlight) : !1, he = (u) => {
7603
7603
  const P = k(u.value);
7604
7604
  return P && (typeof r.value == "function" ? !r.value(u.value, P) : !r.value.options.highlightDisabled);
7605
7605
  }, D = (u) => {
@@ -7611,33 +7611,33 @@ const fs = ({
7611
7611
  dp__cell_offset: !u.current,
7612
7612
  dp__pointer: !n.disabled && !(!u.current && n.hideOffsetDates) && !k(u.value),
7613
7613
  dp__cell_disabled: k(u.value),
7614
- dp__cell_highlight: !he(u) && (pe(u) || D(u)) && !re(u) && !p && !x(u) && !(Y(u) && n.weekPicker) && !J,
7615
- dp__cell_highlight_active: !he(u) && (pe(u) || D(u)) && re(u),
7614
+ dp__cell_highlight: !he(u) && (pe(u) || D(u)) && !le(u) && !p && !x(u) && !(Y(u) && n.weekPicker) && !J,
7615
+ dp__cell_highlight_active: !he(u) && (pe(u) || D(u)) && le(u),
7616
7616
  dp__today: !n.noToday && Te(u.value, d.value) && u.current,
7617
7617
  "dp--past": Ne(u.value, d.value),
7618
7618
  "dp--future": qe(u.value, d.value)
7619
7619
  };
7620
7620
  }, Q = (u) => ({
7621
- dp__active_date: re(u),
7621
+ dp__active_date: le(u),
7622
7622
  dp__date_hover: L(u)
7623
7623
  }), oe = (u) => {
7624
7624
  if (e.value && !Array.isArray(e.value)) {
7625
7625
  const P = Tt(e.value, n.weekStart);
7626
7626
  return {
7627
- ...j(u),
7627
+ ...X(u),
7628
7628
  dp__range_start: Te(P[0], u.value),
7629
7629
  dp__range_end: Te(P[1], u.value),
7630
7630
  dp__range_between_week: qe(u.value, P[0]) && Ne(u.value, P[1])
7631
7631
  };
7632
7632
  }
7633
7633
  return {
7634
- ...j(u)
7634
+ ...X(u)
7635
7635
  };
7636
7636
  }, q = (u) => {
7637
7637
  if (e.value && Array.isArray(e.value)) {
7638
7638
  const P = Tt(e.value[0], n.weekStart), J = e.value[1] ? Tt(e.value[1], n.weekStart) : [];
7639
7639
  return {
7640
- ...j(u),
7640
+ ...X(u),
7641
7641
  dp__range_start: Te(P[0], u.value) || Te(J[0], u.value),
7642
7642
  dp__range_end: Te(P[1], u.value) || Te(J[1], u.value),
7643
7643
  dp__range_between_week: qe(u.value, P[0]) && Ne(u.value, P[1]) || qe(u.value, J[0]) && Ne(u.value, J[1]),
@@ -7645,7 +7645,7 @@ const fs = ({
7645
7645
  };
7646
7646
  }
7647
7647
  return {
7648
- ...j(u)
7648
+ ...X(u)
7649
7649
  };
7650
7650
  }, T = (u) => {
7651
7651
  const P = a.value.count > 0 ? u.current && E(u) && H() : E(u) && H(), J = a.value.count > 0 ? u.current && E(u, !1) && H() : E(u, !1) && H();
@@ -7660,12 +7660,12 @@ const fs = ({
7660
7660
  dp__date_hover_start: N(u, !0),
7661
7661
  dp__date_hover_end: N(u, !1)
7662
7662
  };
7663
- }, j = (u) => ({
7663
+ }, X = (u) => ({
7664
7664
  ...ie(u),
7665
7665
  dp__cell_auto_range: C(u),
7666
7666
  dp__cell_auto_range_start: x(u),
7667
7667
  dp__cell_auto_range_end: I(u)
7668
- }), O = (u) => s.value.enabled ? s.value.autoRange ? j(u) : n.modelAuto ? { ...Q(u), ...ie(u) } : n.weekPicker ? q(u) : ie(u) : n.weekPicker ? oe(u) : Q(u);
7668
+ }), O = (u) => s.value.enabled ? s.value.autoRange ? X(u) : n.modelAuto ? { ...Q(u), ...ie(u) } : n.weekPicker ? q(u) : ie(u) : n.weekPicker ? oe(u) : Q(u);
7669
7669
  return {
7670
7670
  setHoverDate: f,
7671
7671
  clearHoverDate: b,
@@ -7677,18 +7677,18 @@ const fs = ({
7677
7677
  }
7678
7678
  };
7679
7679
  }, Ht = (e) => {
7680
- const { defaultedFilters: n, defaultedRange: a, propDates: t, defaultedMultiDates: l } = Be(e), r = (D) => t.value.disabledDates ? typeof t.value.disabledDates == "function" ? t.value.disabledDates(K(D)) : !!Ha(D, t.value.disabledDates) : !1, o = (D) => t.value.maxDate ? e.yearPicker ? we(D) > we(t.value.maxDate) : qe(D, t.value.maxDate) : !1, v = (D) => t.value.minDate ? e.yearPicker ? we(D) < we(t.value.minDate) : Ne(D, t.value.minDate) : !1, s = (D) => {
7681
- const Y = o(D), M = v(D), Q = r(D), oe = n.value.months.map((O) => +O).includes(De(D)), q = e.disabledWeekDays.length ? e.disabledWeekDays.some((O) => +O === Oo(D)) : !1, T = b(D), ie = we(D), j = ie < +e.yearRange[0] || ie > +e.yearRange[1];
7682
- return !(Y || M || Q || oe || j || q || T);
7680
+ const { defaultedFilters: n, defaultedRange: a, propDates: t, defaultedMultiDates: l } = Be(e), r = (D) => t.value.disabledDates ? typeof t.value.disabledDates == "function" ? t.value.disabledDates(K(D)) : !!La(D, t.value.disabledDates) : !1, o = (D) => t.value.maxDate ? e.yearPicker ? _e(D) > _e(t.value.maxDate) : qe(D, t.value.maxDate) : !1, v = (D) => t.value.minDate ? e.yearPicker ? _e(D) < _e(t.value.minDate) : Ne(D, t.value.minDate) : !1, s = (D) => {
7681
+ const Y = o(D), M = v(D), Q = r(D), oe = n.value.months.map((O) => +O).includes(De(D)), q = e.disabledWeekDays.length ? e.disabledWeekDays.some((O) => +O === Oo(D)) : !1, T = b(D), ie = _e(D), X = ie < +e.yearRange[0] || ie > +e.yearRange[1];
7682
+ return !(Y || M || Q || oe || X || q || T);
7683
7683
  }, k = (D, Y) => Ne(...Rt(t.value.minDate, D, Y)) || Te(...Rt(t.value.minDate, D, Y)), m = (D, Y) => qe(...Rt(t.value.maxDate, D, Y)) || Te(...Rt(t.value.maxDate, D, Y)), d = (D, Y, M) => {
7684
7684
  let Q = !1;
7685
7685
  return t.value.maxDate && M && m(D, Y) && (Q = !0), t.value.minDate && !M && k(D, Y) && (Q = !0), Q;
7686
7686
  }, f = (D, Y, M, Q) => {
7687
7687
  let oe = !1;
7688
7688
  return Q && (t.value.minDate || t.value.maxDate) ? t.value.minDate && t.value.maxDate ? oe = d(D, Y, M) : (t.value.minDate && k(D, Y) || t.value.maxDate && m(D, Y)) && (oe = !0) : oe = !0, oe;
7689
- }, b = (D) => Array.isArray(t.value.allowedDates) && !t.value.allowedDates.length ? !0 : t.value.allowedDates ? !Ha(D, t.value.allowedDates) : !1, _ = (D) => !s(D), h = (D) => a.value.noDisabledRange ? !_l({ start: D[0], end: D[1] }).some((Y) => _(Y)) : !0, S = (D) => {
7689
+ }, b = (D) => Array.isArray(t.value.allowedDates) && !t.value.allowedDates.length ? !0 : t.value.allowedDates ? !La(D, t.value.allowedDates) : !1, _ = (D) => !s(D), h = (D) => a.value.noDisabledRange ? !_l({ start: D[0], end: D[1] }).some((Y) => _(Y)) : !0, S = (D) => {
7690
7690
  if (D) {
7691
- const Y = we(D);
7691
+ const Y = _e(D);
7692
7692
  return Y >= +e.yearRange[0] && Y <= e.yearRange[1];
7693
7693
  }
7694
7694
  return !0;
@@ -7701,7 +7701,7 @@ const fs = ({
7701
7701
  if (a.value.maxRange) return T <= +a.value.maxRange;
7702
7702
  }
7703
7703
  return !0;
7704
- }, w = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, I = (D) => Array.isArray(D) ? [D[0] ? cn(D[0]) : null, D[1] ? cn(D[1]) : null] : cn(D), C = (D, Y, M) => D.find(
7704
+ }, w = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, I = (D) => Array.isArray(D) ? [D[0] ? sn(D[0]) : null, D[1] ? sn(D[1]) : null] : sn(D), C = (D, Y, M) => D.find(
7705
7705
  (Q) => +Q.hours === At(Y) && Q.minutes === "*" ? !0 : +Q.minutes === Lt(Y) && +Q.hours === At(Y)
7706
7706
  ) && M, x = (D, Y, M) => {
7707
7707
  const [Q, oe] = D, [q, T] = Y;
@@ -7710,7 +7710,7 @@ const fs = ({
7710
7710
  const M = Array.isArray(Y) ? Y : [Y];
7711
7711
  return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? x(e.disabledTimes, M, D) : !M.some((Q) => C(e.disabledTimes, Q, D)) : D;
7712
7712
  }, z = (D, Y) => {
7713
- const M = Array.isArray(Y) ? [Xt(Y[0]), Y[1] ? Xt(Y[1]) : void 0] : Xt(Y), Q = !e.disabledTimes(M);
7713
+ const M = Array.isArray(Y) ? [jt(Y[0]), Y[1] ? jt(Y[1]) : void 0] : jt(Y), Q = !e.disabledTimes(M);
7714
7714
  return D && Q;
7715
7715
  }, H = (D, Y) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? y(Y, D) : z(Y, D) : Y, L = (D) => {
7716
7716
  let Y = !0;
@@ -7720,16 +7720,16 @@ const fs = ({
7720
7720
  e.maxTime,
7721
7721
  t.value.maxDate,
7722
7722
  "max",
7723
- je(M),
7723
+ Xe(M),
7724
7724
  Y
7725
7725
  )), (e.minTime || t.value.minDate) && (Y = sl(
7726
7726
  e.minTime,
7727
7727
  t.value.minDate,
7728
7728
  "min",
7729
- je(M),
7729
+ Xe(M),
7730
7730
  Y
7731
7731
  )), H(D, Y);
7732
- }, re = (D) => {
7732
+ }, le = (D) => {
7733
7733
  if (!e.monthPicker) return !0;
7734
7734
  let Y = !0;
7735
7735
  const M = K(yt(D));
@@ -7746,7 +7746,7 @@ const fs = ({
7746
7746
  Y = Ne(M, Q) || Te(M, Q);
7747
7747
  }
7748
7748
  return Y;
7749
- }, pe = G(() => (D) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : L(D)), he = G(() => (D) => e.monthPicker ? Array.isArray(D) && (a.value.enabled || l.value.enabled) ? !D.filter((Y) => !re(Y)).length : re(D) : !0);
7749
+ }, pe = G(() => (D) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : L(D)), he = G(() => (D) => e.monthPicker ? Array.isArray(D) && (a.value.enabled || l.value.enabled) ? !D.filter((Y) => !le(Y)).length : le(D) : !0);
7750
7750
  return {
7751
7751
  isDisabled: _,
7752
7752
  validateDate: s,
@@ -7757,11 +7757,11 @@ const fs = ({
7757
7757
  isTimeValid: pe,
7758
7758
  isMonthValid: he
7759
7759
  };
7760
- }, ja = () => {
7760
+ }, Qa = () => {
7761
7761
  const e = G(() => (t, l) => t == null ? void 0 : t.includes(l)), n = G(() => (t, l) => t.count ? t.solo ? !0 : l === 0 : !0), a = G(() => (t, l) => t.count ? t.solo ? !0 : l === t.count - 1 : !0);
7762
7762
  return { hideNavigationButtons: e, showLeftIcon: n, showRightIcon: a };
7763
7763
  }, bs = (e, n, a) => {
7764
- const t = X(0), l = Pa({
7764
+ const t = j(0), l = Ta({
7765
7765
  [Qt.timePicker]: !e.enableTimePicker || e.timePicker || e.monthPicker,
7766
7766
  [Qt.calendar]: !1,
7767
7767
  [Qt.header]: !1
@@ -7799,7 +7799,7 @@ const fs = ({
7799
7799
  props: {
7800
7800
  isMenuOpen: { type: Boolean, default: !1 },
7801
7801
  inputValue: { type: String, default: "" },
7802
- ...Wa
7802
+ ...za
7803
7803
  },
7804
7804
  emits: [
7805
7805
  "clear",
@@ -7827,7 +7827,7 @@ const fs = ({
7827
7827
  defaultedUI: d,
7828
7828
  getDefaultPattern: f,
7829
7829
  getDefaultStartTime: b
7830
- } = Be(l), { checkMinMaxRange: _ } = Ht(l), h = X(), S = X(null), E = X(!1), N = X(!1), w = G(
7830
+ } = Be(l), { checkMinMaxRange: _ } = Ht(l), h = j(), S = j(null), E = j(!1), N = j(!1), w = G(
7831
7831
  () => ({
7832
7832
  dp__pointer: !l.disabled && !l.readonly && !r.value.enabled,
7833
7833
  dp__disabled: l.disabled,
@@ -7853,9 +7853,9 @@ const fs = ({
7853
7853
  l.formatLocale
7854
7854
  );
7855
7855
  }, x = (T) => {
7856
- const { rangeSeparator: ie } = r.value, [j, O] = T.split(`${ie}`);
7857
- if (j) {
7858
- const u = C(j.trim()), P = O ? C(O.trim()) : null;
7856
+ const { rangeSeparator: ie } = r.value, [X, O] = T.split(`${ie}`);
7857
+ if (X) {
7858
+ const u = C(X.trim()), P = O ? C(O.trim()) : null;
7859
7859
  if (la(u, P)) return;
7860
7860
  const J = u && P ? [u, P] : [u];
7861
7861
  _(P, J, 0) && (h.value = u ? J : null);
@@ -7867,16 +7867,16 @@ const fs = ({
7867
7867
  x(T);
7868
7868
  else if (m.value.enabled) {
7869
7869
  const ie = T.split(";");
7870
- h.value = ie.map((j) => C(j.trim())).filter((j) => j);
7870
+ h.value = ie.map((X) => C(X.trim())).filter((X) => X);
7871
7871
  } else
7872
7872
  h.value = C(T);
7873
7873
  }, H = (T) => {
7874
7874
  var ie;
7875
- const j = typeof T == "string" ? T : (ie = T.target) == null ? void 0 : ie.value;
7876
- j !== "" ? (r.value.openMenu && !l.isMenuOpen && t("open"), z(j), t("set-input-date", h.value)) : I(), N.value = !1, t("update:input-value", j), t("text-input", T, h.value);
7875
+ const X = typeof T == "string" ? T : (ie = T.target) == null ? void 0 : ie.value;
7876
+ X !== "" ? (r.value.openMenu && !l.isMenuOpen && t("open"), z(X), t("set-input-date", h.value)) : I(), N.value = !1, t("update:input-value", X), t("text-input", T, h.value);
7877
7877
  }, L = (T) => {
7878
7878
  r.value.enabled ? (z(T.target.value), r.value.enterSubmit && Tn(h.value) && l.inputValue !== "" ? (t("set-input-date", h.value, !0), h.value = null) : r.value.enterSubmit && l.inputValue === "" && (h.value = null, t("clear"))) : he(T);
7879
- }, re = (T, ie) => {
7879
+ }, le = (T, ie) => {
7880
7880
  r.value.enabled && r.value.tabSubmit && !ie && z(T.target.value), r.value.tabSubmit && Tn(h.value) && l.inputValue !== "" ? (t("set-input-date", h.value, !0, !0), h.value = null) : r.value.tabSubmit && l.inputValue === "" && (h.value = null, t("clear", !0));
7881
7881
  }, pe = () => {
7882
7882
  E.value = !0, t("focus"), ct().then(() => {
@@ -7893,7 +7893,7 @@ const fs = ({
7893
7893
  }, Y = (T) => {
7894
7894
  Et(T, s.value, !0), t("clear");
7895
7895
  }, M = (T) => {
7896
- if (T.key === "Tab" && re(T), T.key === "Enter" && L(T), !r.value.enabled) {
7896
+ if (T.key === "Tab" && le(T), T.key === "Enter" && L(T), !r.value.enabled) {
7897
7897
  if (T.code === "Tab") return;
7898
7898
  T.preventDefault();
7899
7899
  }
@@ -7903,13 +7903,13 @@ const fs = ({
7903
7903
  }, oe = (T) => {
7904
7904
  h.value = T;
7905
7905
  }, q = (T) => {
7906
- T.key === Ee.tab && re(T, !0);
7906
+ T.key === Ee.tab && le(T, !0);
7907
7907
  };
7908
7908
  return n({
7909
7909
  focusInput: Q,
7910
7910
  setParsedDate: oe
7911
7911
  }), (T, ie) => {
7912
- var j, O, u;
7912
+ var X, O, u;
7913
7913
  return g(), W("div", { onClick: he }, [
7914
7914
  T.$slots.trigger && !T.$slots["dp-input"] && !i(v).enabled ? ce(T.$slots, "trigger", { key: 0 }) : F("", !0),
7915
7915
  !T.$slots.trigger && (!i(v).enabled || i(v).input) ? (g(), W("div", ws, [
@@ -7919,7 +7919,7 @@ const fs = ({
7919
7919
  isMenuOpen: e.isMenuOpen,
7920
7920
  onInput: H,
7921
7921
  onEnter: L,
7922
- onTab: re,
7922
+ onTab: le,
7923
7923
  onClear: Y,
7924
7924
  onBlur: D,
7925
7925
  onKeypress: M,
@@ -7944,7 +7944,7 @@ const fs = ({
7944
7944
  required: T.required,
7945
7945
  value: e.inputValue,
7946
7946
  autocomplete: T.autocomplete,
7947
- "aria-label": (j = i(o)) == null ? void 0 : j.input,
7947
+ "aria-label": (X = i(o)) == null ? void 0 : X.input,
7948
7948
  "aria-disabled": T.disabled || void 0,
7949
7949
  "aria-invalid": T.state === !1 ? !0 : void 0,
7950
7950
  onInput: H,
@@ -7954,7 +7954,7 @@ const fs = ({
7954
7954
  onKeydown: ie[0] || (ie[0] = (P) => M(P)),
7955
7955
  onPaste: y
7956
7956
  }, null, 42, _s)),
7957
- _e("div", {
7957
+ we("div", {
7958
7958
  onClick: ie[3] || (ie[3] = (P) => t("toggle"))
7959
7959
  }, [
7960
7960
  T.$slots["input-icon"] && !T.hideInputIcon ? (g(), W("span", {
@@ -7980,9 +7980,9 @@ const fs = ({
7980
7980
  class: "dp--clear-btn",
7981
7981
  type: "button",
7982
7982
  onKeydown: ie[4] || (ie[4] = (P) => i(lt)(P, () => Y(P), !0, q)),
7983
- onClick: ie[5] || (ie[5] = _a((P) => Y(P), ["prevent"]))
7983
+ onClick: ie[5] || (ie[5] = wa((P) => Y(P), ["prevent"]))
7984
7984
  }, [
7985
- Oe(i(Rl), {
7985
+ Se(i(Rl), {
7986
7986
  class: "dp__input_icons",
7987
7987
  "data-test": "clear-icon"
7988
7988
  })
@@ -7991,15 +7991,15 @@ const fs = ({
7991
7991
  ]);
7992
7992
  };
7993
7993
  }
7994
- }), Ds = typeof window < "u" ? window : void 0, yn = () => {
7994
+ }), Ds = typeof window < "u" ? window : void 0, fn = () => {
7995
7995
  }, Ts = (e) => dr() ? (cr(e), !0) : !1, Ps = (e, n, a, t) => {
7996
- if (!e) return yn;
7997
- let l = yn;
7996
+ if (!e) return fn;
7997
+ let l = fn;
7998
7998
  const r = Qe(
7999
7999
  () => i(e),
8000
8000
  (v) => {
8001
8001
  l(), v && (v.addEventListener(n, a, t), l = () => {
8002
- v.removeEventListener(n, a, t), l = yn;
8002
+ v.removeEventListener(n, a, t), l = fn;
8003
8003
  });
8004
8004
  },
8005
8005
  { immediate: !0, flush: "post" }
@@ -8010,7 +8010,7 @@ const fs = ({
8010
8010
  }, As = (e, n, a, t = {}) => {
8011
8011
  const { window: l = Ds, event: r = "pointerdown" } = t;
8012
8012
  return l ? Ps(l, r, (o) => {
8013
- const v = Xe(e), s = Xe(n);
8013
+ const v = je(e), s = je(n);
8014
8014
  !v || !s || v === o.target || o.composedPath().includes(v) || o.composedPath().includes(s) || a(o);
8015
8015
  }, { passive: !0 }) : void 0;
8016
8016
  }, Cs = /* @__PURE__ */ Ve({
@@ -8019,7 +8019,7 @@ const fs = ({
8019
8019
  },
8020
8020
  __name: "VueDatePicker",
8021
8021
  props: {
8022
- ...Wa
8022
+ ...za
8023
8023
  },
8024
8024
  emits: [
8025
8025
  "update:model-value",
@@ -8049,14 +8049,14 @@ const fs = ({
8049
8049
  "text-input"
8050
8050
  ],
8051
8051
  setup(e, { expose: n, emit: a }) {
8052
- const t = a, l = e, r = jt(), o = X(!1), v = wa(l, "modelValue"), s = wa(l, "timezone"), k = X(null), m = X(null), d = X(null), f = X(!1), b = X(null), _ = X(!1), h = X(!1), S = X(!1), E = X(!1), { setMenuFocused: N, setShiftKey: w } = jl(), { clearArrowNav: I } = Nt(), { validateDate: C, isValidTime: x } = Ht(l), {
8052
+ const t = a, l = e, r = Xt(), o = j(!1), v = ba(l, "modelValue"), s = ba(l, "timezone"), k = j(null), m = j(null), d = j(null), f = j(!1), b = j(null), _ = j(!1), h = j(!1), S = j(!1), E = j(!1), { setMenuFocused: N, setShiftKey: w } = Xl(), { clearArrowNav: I } = Nt(), { validateDate: C, isValidTime: x } = Ht(l), {
8053
8053
  defaultedTransitions: y,
8054
8054
  defaultedTextInput: z,
8055
8055
  defaultedInline: H,
8056
8056
  defaultedConfig: L,
8057
- defaultedRange: re,
8057
+ defaultedRange: le,
8058
8058
  defaultedMultiDates: pe
8059
- } = Be(l), { menuTransition: he, showTransition: D } = Ca(y);
8059
+ } = Be(l), { menuTransition: he, showTransition: D } = Aa(y);
8060
8060
  Je(() => {
8061
8061
  P(l.modelValue), ct().then(() => {
8062
8062
  if (!H.value.enabled) {
@@ -8064,7 +8064,7 @@ const fs = ({
8064
8064
  R == null || R.addEventListener("scroll", te), window == null || window.addEventListener("resize", B);
8065
8065
  }
8066
8066
  }), H.value.enabled && (o.value = !0), window == null || window.addEventListener("keyup", ke), window == null || window.addEventListener("keydown", $);
8067
- }), Fa(() => {
8067
+ }), Na(() => {
8068
8068
  if (!H.value.enabled) {
8069
8069
  const R = ie(b.value);
8070
8070
  R == null || R.removeEventListener("scroll", te), window == null || window.removeEventListener("resize", B);
@@ -8079,7 +8079,7 @@ const fs = ({
8079
8079
  },
8080
8080
  { deep: !0 }
8081
8081
  );
8082
- const { openOnTop: Q, menuStyle: oe, xCorrect: q, setMenuPosition: T, getScrollableParent: ie, shadowRender: j } = fs({
8082
+ const { openOnTop: Q, menuStyle: oe, xCorrect: q, setMenuPosition: T, getScrollableParent: ie, shadowRender: X } = fs({
8083
8083
  menuRef: k,
8084
8084
  menuRefInner: m,
8085
8085
  inputRef: d,
@@ -8122,13 +8122,13 @@ const fs = ({
8122
8122
  }, $ = (R) => {
8123
8123
  h.value = R.shiftKey;
8124
8124
  }, Z = () => {
8125
- !l.disabled && !l.readonly && (j(ml, l), T(!1), o.value = !0, o.value && t("open"), o.value || ca(), P(l.modelValue));
8125
+ !l.disabled && !l.readonly && (X(ml, l), T(!1), o.value = !0, o.value && t("open"), o.value || ca(), P(l.modelValue));
8126
8126
  }, me = () => {
8127
8127
  var R;
8128
8128
  O.value = "", ca(), (R = d.value) == null || R.setParsedDate(null), t("update:model-value", null), t("update:model-timezone-value", null), t("cleared"), L.value.closeOnClearValue && st();
8129
8129
  }, xe = () => {
8130
8130
  const R = u.value;
8131
- return !R || !Array.isArray(R) && C(R) ? !0 : Array.isArray(R) ? pe.value.enabled || R.length === 2 && C(R[0]) && C(R[1]) ? !0 : re.value.partialRange && !l.timePicker ? C(R[0]) : !1 : !1;
8131
+ return !R || !Array.isArray(R) && C(R) ? !0 : Array.isArray(R) ? pe.value.enabled || R.length === 2 && C(R[0]) && C(R[1]) ? !0 : le.value.partialRange && !l.timePicker ? C(R[0]) : !1 : !1;
8132
8132
  }, vt = () => {
8133
8133
  ue() && xe() ? (J(), st()) : t("invalid-select", u.value);
8134
8134
  }, ye = (R) => {
@@ -8136,7 +8136,7 @@ const fs = ({
8136
8136
  }, Ot = () => {
8137
8137
  d.value && z.value.enabled && d.value.setParsedDate(u.value);
8138
8138
  }, _t = (R = !1) => {
8139
- l.autoApply && x(u.value) && xe() && (re.value.enabled && Array.isArray(u.value) ? (re.value.partialRange || u.value.length === 2) && ye(R) : ye(R));
8139
+ l.autoApply && x(u.value) && xe() && (le.value.enabled && Array.isArray(u.value) ? (le.value.partialRange || u.value.length === 2) && ye(R) : ye(R));
8140
8140
  }, ca = () => {
8141
8141
  z.value.enabled || (u.value = null);
8142
8142
  }, st = () => {
@@ -8150,26 +8150,26 @@ const fs = ({
8150
8150
  at && mt ? (E.value = !0, u.value = R, ae && (_.value = de, vt(), t("text-submit")), ct().then(() => {
8151
8151
  E.value = !1;
8152
8152
  })) : t("invalid-date", R);
8153
- }, Ga = () => {
8153
+ }, ja = () => {
8154
8154
  l.autoApply && x(u.value) && J(), Ot();
8155
- }, Oa = () => o.value ? st() : Z(), Ka = (R) => {
8155
+ }, $a = () => o.value ? st() : Z(), Xa = (R) => {
8156
8156
  u.value = R;
8157
- }, Ja = () => {
8157
+ }, Ga = () => {
8158
8158
  z.value.enabled && (f.value = !0, p()), t("focus");
8159
- }, Za = () => {
8159
+ }, Ka = () => {
8160
8160
  if (z.value.enabled && (f.value = !1, P(l.modelValue), _.value)) {
8161
8161
  const R = Fu(b.value, h.value);
8162
8162
  R == null || R.focus();
8163
8163
  }
8164
8164
  t("blur");
8165
- }, en = (R) => {
8165
+ }, Ja = (R) => {
8166
8166
  m.value && m.value.updateMonthYear(0, {
8167
8167
  month: rl(R.month),
8168
8168
  year: rl(R.year)
8169
8169
  });
8170
- }, tn = (R) => {
8170
+ }, Za = (R) => {
8171
8171
  P(R ?? l.modelValue);
8172
- }, an = (R, ae) => {
8172
+ }, en = (R, ae) => {
8173
8173
  var de;
8174
8174
  (de = m.value) == null || de.switchView(R, ae);
8175
8175
  }, A = (R) => L.value.onClickOutside ? L.value.onClickOutside(R) : st(), ne = (R = 0) => {
@@ -8184,12 +8184,12 @@ const fs = ({
8184
8184
  onScroll: te,
8185
8185
  formatInputValue: p,
8186
8186
  // exposed for testing purposes
8187
- updateInternalModelValue: Ka,
8187
+ updateInternalModelValue: Xa,
8188
8188
  // modify internal modelValue
8189
- setMonthYear: en,
8190
- parseModel: tn,
8191
- switchView: an,
8192
- toggleMenu: Oa,
8189
+ setMonthYear: Ja,
8190
+ parseModel: Za,
8191
+ switchView: en,
8192
+ toggleMenu: $a,
8193
8193
  handleFlow: ne,
8194
8194
  dpWrapMenuRef: k
8195
8195
  }), (R, ae) => (g(), W("div", {
@@ -8198,7 +8198,7 @@ const fs = ({
8198
8198
  class: Me(ge.value),
8199
8199
  "data-datepicker-instance": ""
8200
8200
  }, [
8201
- Oe(Ms, Ge({
8201
+ Se(Ms, Ge({
8202
8202
  ref_key: "inputRef",
8203
8203
  ref: d,
8204
8204
  "input-value": i(O),
@@ -8210,27 +8210,27 @@ const fs = ({
8210
8210
  onSetInputDate: va,
8211
8211
  onSetEmptyDate: i(J),
8212
8212
  onSelectDate: vt,
8213
- onToggle: Oa,
8213
+ onToggle: $a,
8214
8214
  onClose: st,
8215
- onFocus: Ja,
8216
- onBlur: Za,
8215
+ onFocus: Ga,
8216
+ onBlur: Ka,
8217
8217
  onRealBlur: ae[1] || (ae[1] = (de) => f.value = !1),
8218
8218
  onTextInput: ae[2] || (ae[2] = (de) => R.$emit("text-input", de))
8219
8219
  }), tt({ _: 2 }, [
8220
8220
  Pe(i(M), (de, at) => ({
8221
8221
  name: de,
8222
- fn: le((mt) => [
8222
+ fn: re((mt) => [
8223
8223
  ce(R.$slots, de, Ke(ut(mt)))
8224
8224
  ])
8225
8225
  }))
8226
8226
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
8227
8227
  (g(), se(ia(R.teleport ? rr : "div"), Ke(ut(V.value)), {
8228
- default: le(() => [
8229
- Oe(sa, {
8228
+ default: re(() => [
8229
+ Se(sa, {
8230
8230
  name: i(he)(i(Q)),
8231
8231
  css: i(D) && !i(H).enabled
8232
8232
  }, {
8233
- default: le(() => [
8233
+ default: re(() => [
8234
8234
  o.value ? (g(), W("div", Ge({
8235
8235
  key: 0,
8236
8236
  ref_key: "dpWrapMenuRef",
@@ -8239,7 +8239,7 @@ const fs = ({
8239
8239
  class: { "dp--menu-wrapper": !i(H).enabled },
8240
8240
  style: i(H).enabled ? void 0 : i(oe)
8241
8241
  }), [
8242
- Oe(ml, Ge({
8242
+ Se(ml, Ge({
8243
8243
  ref_key: "dpMenuRef",
8244
8244
  ref: m
8245
8245
  }, R.$props, {
@@ -8254,7 +8254,7 @@ const fs = ({
8254
8254
  onClosePicker: st,
8255
8255
  onSelectDate: vt,
8256
8256
  onAutoApply: _t,
8257
- onTimeUpdate: Ga,
8257
+ onTimeUpdate: ja,
8258
8258
  onFlowStep: ae[4] || (ae[4] = (de) => R.$emit("flow-step", de)),
8259
8259
  onUpdateMonthYear: ae[5] || (ae[5] = (de) => R.$emit("update-month-year", de)),
8260
8260
  onInvalidSelect: ae[6] || (ae[6] = (de) => R.$emit("invalid-select", i(u))),
@@ -8274,7 +8274,7 @@ const fs = ({
8274
8274
  }), tt({ _: 2 }, [
8275
8275
  Pe(i(Y), (de, at) => ({
8276
8276
  name: de,
8277
- fn: le((mt) => [
8277
+ fn: re((mt) => [
8278
8278
  ce(R.$slots, de, Ke(ut({ ...mt })))
8279
8279
  ])
8280
8280
  }))
@@ -8310,11 +8310,11 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8310
8310
  }),
8311
8311
  emits: ["update:modelValue"],
8312
8312
  setup(e, { expose: n }) {
8313
- const a = e, t = $t(e, "modelValue"), l = X(null), r = X(t.value.max), o = X(t.value.max), v = X(t.value.value), s = G(() => {
8313
+ const a = e, t = $t(e, "modelValue"), l = j(null), r = j(t.value.max), o = j(t.value.max), v = j(t.value.value), s = G(() => {
8314
8314
  if (t.value.pattern) return t.value.pattern;
8315
8315
  let w = t.value.pattern ?? "DD/MMM/YYYY";
8316
8316
  return t.value.enableTime && (w += " HH:mm:ss"), w;
8317
- }), k = /[-/.,:\s]+/, m = G(() => s.value.split(k)), d = G(() => s.value.match(/[-/.,:\s]+/g) || []), f = X({});
8317
+ }), k = /[-/.,:\s]+/, m = G(() => s.value.split(k)), d = G(() => s.value.match(/[-/.,:\s]+/g) || []), f = j({});
8318
8318
  Qe(() => t.value.value, (w) => {
8319
8319
  v.value = w, E(w);
8320
8320
  });
@@ -8345,7 +8345,7 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8345
8345
  }
8346
8346
  async function S(w, I, C) {
8347
8347
  let x = I ?? (C == null ? void 0 : C.target).value;
8348
- /MM|MMM|MMMM/.test(w) && (x = ln(x, w)), Number.isInteger(parseInt(x)) && (x = Vt(parseInt(x))), f.value[w] = x;
8348
+ /MM|MMM|MMMM/.test(w) && (x = an(x, w)), Number.isInteger(parseInt(x)) && (x = Vt(parseInt(x))), f.value[w] = x;
8349
8349
  const y = m.value.reduce((z, H, L) => (z += f.value[H] + (L < m.value.length - 1 ? d.value[L] : ""), z), "");
8350
8350
  v.value = y, await _();
8351
8351
  }
@@ -8365,7 +8365,7 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8365
8365
  var C;
8366
8366
  f.value[w] = ((C = v.value) == null ? void 0 : C.split(k)[I]) ?? "";
8367
8367
  });
8368
- }), (w, I) => (g(), se(i(Ba), {
8368
+ }), (w, I) => (g(), se(i(Ra), {
8369
8369
  type: "text",
8370
8370
  ref_key: "inputRef",
8371
8371
  ref: l,
@@ -8379,18 +8379,18 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8379
8379
  onIonFocus: h,
8380
8380
  onIonBlur: _
8381
8381
  }, {
8382
- default: le(() => [
8382
+ default: re(() => [
8383
8383
  t.value.label ? (g(), se(i(pt), {
8384
8384
  key: 0,
8385
8385
  slot: "label"
8386
8386
  }, {
8387
- default: le(() => [
8387
+ default: re(() => [
8388
8388
  Ye(Ce(t.value.label) + " ", 1),
8389
- t.value.required ? (g(), se(i(qa), {
8389
+ t.value.required ? (g(), se(i(Ha), {
8390
8390
  key: 0,
8391
8391
  color: "danger"
8392
8392
  }, {
8393
- default: le(() => I[0] || (I[0] = [
8393
+ default: re(() => I[0] || (I[0] = [
8394
8394
  Ye("*")
8395
8395
  ])),
8396
8396
  _: 1
@@ -8410,19 +8410,19 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8410
8410
  onIonInput: (y) => S(C, void 0, y),
8411
8411
  onIonBlur: (y) => S(C, void 0, y)
8412
8412
  }, {
8413
- default: le(() => [
8414
- (g(!0), W(be, null, Pe(i(xa), (y, z) => (g(), se(i(fr), {
8413
+ default: re(() => [
8414
+ (g(!0), W(be, null, Pe(i(ka), (y, z) => (g(), se(i(fr), {
8415
8415
  key: y,
8416
- value: i(ln)(z + 1, C)
8416
+ value: i(an)(z + 1, C)
8417
8417
  }, {
8418
- default: le(() => [
8419
- Ye(Ce(i(ln)(z + 1, C)), 1)
8418
+ default: re(() => [
8419
+ Ye(Ce(i(an)(z + 1, C)), 1)
8420
8420
  ]),
8421
8421
  _: 2
8422
8422
  }, 1032, ["value"]))), 128))
8423
8423
  ]),
8424
8424
  _: 2
8425
- }, 1032, ["style", "placeholder", "value", "onIonInput", "onIonBlur"])) : (g(), se(i(Ba), {
8425
+ }, 1032, ["style", "placeholder", "value", "onIonInput", "onIonBlur"])) : (g(), se(i(Ra), {
8426
8426
  key: 1,
8427
8427
  slot: "start",
8428
8428
  placeholder: C,
@@ -8436,15 +8436,15 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8436
8436
  key: 2,
8437
8437
  slot: "start"
8438
8438
  }, {
8439
- default: le(() => [
8439
+ default: re(() => [
8440
8440
  Ye("  " + Ce(d.value[x]) + "       ", 1)
8441
8441
  ]),
8442
8442
  _: 2
8443
8443
  }, 1024)) : F("", !0)
8444
8444
  ], 64))), 256)),
8445
- Oe(i(pt), { slot: "end" }, {
8446
- default: le(() => [
8447
- Oe(i(Un), {
8445
+ Se(i(pt), { slot: "end" }, {
8446
+ default: re(() => [
8447
+ Se(i(Un), {
8448
8448
  "enable-seconds": "",
8449
8449
  "time-picker-inline": "",
8450
8450
  teleport: "",
@@ -8455,10 +8455,10 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8455
8455
  minDate: o.value,
8456
8456
  onDateUpdate: E
8457
8457
  }, {
8458
- trigger: le(() => [
8459
- Oe(i(Ut), { fill: "clear" }, {
8460
- default: le(() => [
8461
- Oe(i(ka), {
8458
+ trigger: re(() => [
8459
+ Se(i(Ut), { fill: "clear" }, {
8460
+ default: re(() => [
8461
+ Se(i(_a), {
8462
8462
  slot: "icon-only",
8463
8463
  icon: i(Ss),
8464
8464
  "aria-hidden": "true",
@@ -8487,7 +8487,7 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8487
8487
  }),
8488
8488
  emits: ["update:modelValue"],
8489
8489
  setup(e, { expose: n }) {
8490
- const a = e, t = $t(e, "modelValue"), l = X(null);
8490
+ const a = e, t = $t(e, "modelValue"), l = j(null);
8491
8491
  return n({
8492
8492
  onReset: () => {
8493
8493
  var r;
@@ -8501,7 +8501,7 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8501
8501
  var r;
8502
8502
  return (r = l.value) == null ? void 0 : r.getErrors();
8503
8503
  }
8504
- }), (r, o) => (g(), se(za, {
8504
+ }), (r, o) => (g(), se(Fa, {
8505
8505
  modelValue: t.value,
8506
8506
  "onUpdate:modelValue": o[0] || (o[0] = (v) => t.value = v),
8507
8507
  type: "number",
@@ -8520,7 +8520,7 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8520
8520
  }),
8521
8521
  emits: ["update:modelValue"],
8522
8522
  setup(e, { expose: n }) {
8523
- const a = e, t = $t(e, "modelValue"), l = X(null);
8523
+ const a = e, t = $t(e, "modelValue"), l = j(null);
8524
8524
  return n({
8525
8525
  onReset: () => {
8526
8526
  var r;
@@ -8534,7 +8534,7 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8534
8534
  var r;
8535
8535
  return (r = l.value) == null ? void 0 : r.getErrors();
8536
8536
  }
8537
- }), (r, o) => (g(), se(za, {
8537
+ }), (r, o) => (g(), se(Fa, {
8538
8538
  modelValue: t.value,
8539
8539
  "onUpdate:modelValue": o[0] || (o[0] = (v) => t.value = v),
8540
8540
  type: "email",
@@ -8553,7 +8553,7 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8553
8553
  }),
8554
8554
  emits: ["update:modelValue"],
8555
8555
  setup(e, { expose: n }) {
8556
- const a = e, t = $t(e, "modelValue"), l = X(null);
8556
+ const a = e, t = $t(e, "modelValue"), l = j(null);
8557
8557
  return n({
8558
8558
  onReset: () => {
8559
8559
  var r;
@@ -8567,7 +8567,7 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8567
8567
  var r;
8568
8568
  return (r = l.value) == null ? void 0 : r.getErrors();
8569
8569
  }
8570
- }), (r, o) => (g(), se(za, {
8570
+ }), (r, o) => (g(), se(Fa, {
8571
8571
  modelValue: t.value,
8572
8572
  "onUpdate:modelValue": o[0] || (o[0] = (v) => t.value = v),
8573
8573
  type: "password",
@@ -8587,9 +8587,9 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8587
8587
  }),
8588
8588
  emits: ["update:modelValue"],
8589
8589
  setup(e, { expose: n }) {
8590
- const a = e, t = $t(e, "modelValue"), l = X(null), r = X(!1), o = G(
8590
+ const a = e, t = $t(e, "modelValue"), l = j(null), r = j(!1), o = G(
8591
8591
  () => typeof t.value.options == "function"
8592
- ), v = X(!1), s = X([]), k = X(""), m = X(1), d = G(
8592
+ ), v = j(!1), s = j([]), k = j(""), m = j(1), d = G(
8593
8593
  () => s.value.filter((C) => !!C.isChecked)
8594
8594
  ), f = G(() => !k.value && gn(d.value) && !r.value ? t.value.placeholder ?? "Select an option" : "");
8595
8595
  Qe([k, () => t.value.options], N, {
@@ -8597,10 +8597,10 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8597
8597
  deep: !0
8598
8598
  }), Qe(() => t.value.value, I, { immediate: !0, deep: !0 });
8599
8599
  function b() {
8600
- s.value.forEach((C) => Xn(C, s.value)), t.value.error = "", k.value = "", m.value = 1, t.value.value = t.value.multiple ? [] : "";
8600
+ s.value.forEach((C) => jn(C, s.value)), t.value.error = "", k.value = "", m.value = 1, t.value.value = t.value.multiple ? [] : "";
8601
8601
  }
8602
8602
  function _(C) {
8603
- if (C.isChecked) return Xn(C, s.value);
8603
+ if (C.isChecked) return jn(C, s.value);
8604
8604
  t.value.multiple ? Kt(C, s.value) : (b(), Kt(C, s.value), E()), k.value = "";
8605
8605
  }
8606
8606
  function h(C) {
@@ -8618,8 +8618,8 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8618
8618
  return !0;
8619
8619
  }
8620
8620
  async function E(C) {
8621
- var x, y, z, H, L, re;
8622
- (x = C == null ? void 0 : C.relatedTarget) != null && x.closest(".suggestions-list") || (r.value = !1, (y = l.value) == null || y.$el.classList.remove("ion-invalid"), (z = l.value) == null || z.$el.classList.remove("ion-valid"), await S() ? (t.value.error = "", t.value.value = t.value.multiple ? d.value : d.value[0], (H = l.value) == null || H.$el.classList.add("ion-valid")) : (L = l.value) == null || L.$el.classList.add("ion-invalid"), (re = l.value) == null || re.$el.classList.add("ion-touched"));
8621
+ var x, y, z, H, L, le;
8622
+ (x = C == null ? void 0 : C.relatedTarget) != null && x.closest(".suggestions-list") || (r.value = !1, (y = l.value) == null || y.$el.classList.remove("ion-invalid"), (z = l.value) == null || z.$el.classList.remove("ion-valid"), await S() ? (t.value.error = "", t.value.value = t.value.multiple ? d.value : d.value[0], (H = l.value) == null || H.$el.classList.add("ion-valid")) : (L = l.value) == null || L.$el.classList.add("ion-invalid"), (le = l.value) == null || le.$el.classList.add("ion-touched"));
8623
8623
  }
8624
8624
  async function N() {
8625
8625
  const C = [];
@@ -8653,7 +8653,7 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8653
8653
  class: "autocomplete-container",
8654
8654
  onFocusout: E
8655
8655
  }, [
8656
- Oe(i(Ba), {
8656
+ Se(i(Ra), {
8657
8657
  ref_key: "inputRef",
8658
8658
  ref: l,
8659
8659
  modelValue: k.value,
@@ -8670,18 +8670,18 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8670
8670
  onIonFocus: h,
8671
8671
  debounce: 300
8672
8672
  }, {
8673
- default: le(() => [
8673
+ default: re(() => [
8674
8674
  t.value.label ? (g(), se(i(pt), {
8675
8675
  key: 0,
8676
8676
  slot: "label"
8677
8677
  }, {
8678
- default: le(() => [
8678
+ default: re(() => [
8679
8679
  Ye(Ce(t.value.label) + " ", 1),
8680
- t.value.required ? (g(), se(i(qa), {
8680
+ t.value.required ? (g(), se(i(Ha), {
8681
8681
  key: 0,
8682
8682
  color: "danger"
8683
8683
  }, {
8684
- default: le(() => x[1] || (x[1] = [
8684
+ default: re(() => x[1] || (x[1] = [
8685
8685
  Ye("*")
8686
8686
  ])),
8687
8687
  _: 1
@@ -8694,11 +8694,11 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8694
8694
  style: { width: "fit-content" },
8695
8695
  slot: "start"
8696
8696
  }, {
8697
- default: le(() => [
8697
+ default: re(() => [
8698
8698
  (g(!0), W(be, null, Pe(d.value, (y, z) => (g(), se(i(hr), { key: z }, {
8699
- default: le(() => [
8700
- Oe(i(pt), null, {
8701
- default: le(() => [
8699
+ default: re(() => [
8700
+ Se(i(pt), null, {
8701
+ default: re(() => [
8702
8702
  Ye(Ce(y.label), 1)
8703
8703
  ]),
8704
8704
  _: 2
@@ -8713,7 +8713,7 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8713
8713
  slot: "start",
8714
8714
  class: "ion-no-wrap"
8715
8715
  }, {
8716
- default: le(() => {
8716
+ default: re(() => {
8717
8717
  var y;
8718
8718
  return [
8719
8719
  Ye(Ce(((y = d.value[0]) == null ? void 0 : y.label) ?? ""), 1)
@@ -8721,11 +8721,11 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8721
8721
  }),
8722
8722
  _: 1
8723
8723
  })),
8724
- Oe(i(ka), {
8724
+ Se(i(_a), {
8725
8725
  slot: "end",
8726
8726
  icon: i(Ys)
8727
8727
  }, null, 8, ["icon"]),
8728
- d.value.length > 0 || k.value ? (g(), se(i(ka), {
8728
+ d.value.length > 0 || k.value ? (g(), se(i(_a), {
8729
8729
  key: 3,
8730
8730
  slot: "end",
8731
8731
  icon: i(Is),
@@ -8739,20 +8739,20 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8739
8739
  key: 0,
8740
8740
  class: "suggestions-list ion-content-scroll-host"
8741
8741
  }, {
8742
- default: le(() => [
8742
+ default: re(() => [
8743
8743
  (g(!0), W(be, null, Pe(s.value, (y) => (g(), se(i(gr), {
8744
8744
  button: "",
8745
8745
  key: y.label,
8746
8746
  onClick: (z) => _(y)
8747
8747
  }, {
8748
- default: le(() => [
8748
+ default: re(() => [
8749
8749
  t.value.multiple ? (g(), se(i(br), {
8750
8750
  key: 0,
8751
8751
  slot: "start",
8752
8752
  checked: y.isChecked
8753
8753
  }, null, 8, ["checked"])) : F("", !0),
8754
- Oe(i(pt), null, {
8755
- default: le(() => [
8754
+ Se(i(pt), null, {
8755
+ default: re(() => [
8756
8756
  Ye(Ce(y.label), 1)
8757
8757
  ]),
8758
8758
  _: 2
@@ -8767,8 +8767,8 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8767
8767
  position: "bottom",
8768
8768
  disabled: v.value
8769
8769
  }, {
8770
- default: le(() => [
8771
- Oe(i(_r), {
8770
+ default: re(() => [
8771
+ Se(i(_r), {
8772
8772
  "loading-spinner": "bubbles",
8773
8773
  "loading-text": "Loading more data..."
8774
8774
  })
@@ -8795,7 +8795,7 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8795
8795
  }),
8796
8796
  emits: ["update:modelValue"],
8797
8797
  setup(e, { expose: n }) {
8798
- const a = e, t = $t(e, "modelValue"), l = X(null), r = X(t.value.value);
8798
+ const a = e, t = $t(e, "modelValue"), l = j(null), r = j(t.value.value);
8799
8799
  Qe(() => t.value.value, (m) => r.value = m);
8800
8800
  function o() {
8801
8801
  var m, d;
@@ -8848,18 +8848,18 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8848
8848
  onIonChange: k,
8849
8849
  onIonBlur: k
8850
8850
  }, {
8851
- default: le(() => [
8851
+ default: re(() => [
8852
8852
  t.value.label ? (g(), se(i(pt), {
8853
8853
  key: 0,
8854
8854
  slot: "label"
8855
8855
  }, {
8856
- default: le(() => [
8856
+ default: re(() => [
8857
8857
  Ye(Ce(t.value.label) + " ", 1),
8858
- t.value.required ? (g(), se(i(qa), {
8858
+ t.value.required ? (g(), se(i(Ha), {
8859
8859
  key: 0,
8860
8860
  color: "danger"
8861
8861
  }, {
8862
- default: le(() => d[1] || (d[1] = [
8862
+ default: re(() => d[1] || (d[1] = [
8863
8863
  Ye("*")
8864
8864
  ])),
8865
8865
  _: 1
@@ -8871,7 +8871,10 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8871
8871
  _: 1
8872
8872
  }, 8, ["modelValue", "fill", "label-placement", "required", "error-text", "auto-focus", "placeholder", "disabled", "counter", "min", "max", "rows", "cols", "auto-grow", "max-length", "min-length", "pattern"]));
8873
8873
  }
8874
- }), zs = /* @__PURE__ */ Ve({
8874
+ }), zs = { style: { display: "flex", "justify-content": "space-between", "align-items": "baseline" } }, Us = {
8875
+ class: "ion-margin-end",
8876
+ style: { width: "85%" }
8877
+ }, Ws = { style: { display: "flex", "justify-content": "flex-end" } }, Qs = /* @__PURE__ */ Ve({
8875
8878
  __name: "RepeatInput",
8876
8879
  props: /* @__PURE__ */ Ct({
8877
8880
  schema: {},
@@ -8883,7 +8886,7 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8883
8886
  }),
8884
8887
  emits: ["update:modelValue"],
8885
8888
  setup(e, { expose: n }) {
8886
- const a = $t(e, "modelValue"), t = X([]), l = X([]), r = G(() => t.value.map((d, f) => ({
8889
+ const a = $t(e, "modelValue"), t = j([]), l = j([]), r = G(() => t.value.map((d, f) => ({
8887
8890
  label: `Set ${f + 1}`,
8888
8891
  value: f,
8889
8892
  other: Object.entries(d).reduce((b, [_, h]) => (b[_] = h.value, b), {})
@@ -8916,91 +8919,77 @@ const Os = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' clas
8916
8919
  onValueUpdate: m,
8917
8920
  onReset: s,
8918
8921
  getErrors: k
8919
- }), (d, f) => (g(), W("div", null, [
8920
- (g(!0), W(be, null, Pe(t.value, (b, _) => (g(), se(i(Ea), null, {
8921
- default: le(() => [
8922
- Oe(i(ya), { size: "11" }, {
8923
- default: le(() => [
8924
- Oe(i(Ea), null, {
8925
- default: le(() => [
8926
- (g(!0), W(be, null, Pe(Object.keys(b), (h) => {
8927
- var S, E, N, w, I;
8928
- return g(), W(be, null, [
8929
- i(bn)(b[h], d.data, d.computedData) ? (g(), se(i(ya), {
8930
- key: `${_}-${h}`,
8931
- size: ((S = b[h].grid) == null ? void 0 : S.xs) ?? "12",
8932
- "size-sm": (E = b[h].grid) == null ? void 0 : E.sm,
8933
- "size-md": (N = b[h].grid) == null ? void 0 : N.md,
8934
- "size-lg": (w = b[h].grid) == null ? void 0 : w.lg,
8935
- "size-xl": (I = b[h].grid) == null ? void 0 : I.xl,
8936
- class: "ion-margin-bottom"
8937
- }, {
8938
- default: le(() => [
8939
- (g(), se(ia(b[h].type), {
8940
- modelValue: b[h],
8941
- "onUpdate:modelValue": (C) => b[h] = C,
8942
- schema: b,
8943
- "ref-key": `${_}-${h}`,
8944
- ref_for: !0,
8945
- ref_key: "dynamicRefs",
8946
- ref: l
8947
- }, null, 8, ["modelValue", "onUpdate:modelValue", "schema", "ref-key"]))
8948
- ]),
8949
- _: 2
8950
- }, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) : F("", !0)
8951
- ], 64);
8952
- }), 256))
8953
- ]),
8954
- _: 2
8955
- }, 1024)
8956
- ]),
8957
- _: 2
8958
- }, 1024),
8959
- Oe(i(ya), {
8960
- size: "1",
8961
- style: { display: "flex", "align-items": "center", "justify-content": "flex-end" }
8962
- }, {
8963
- default: le(() => [
8964
- _ === t.value.length - 1 ? (g(), se(i(Ut), {
8965
- key: 0,
8966
- onClick: o,
8967
- color: "primary"
8968
- }, {
8969
- default: le(() => [
8970
- Oe(i(ka), {
8971
- slot: "icon-only",
8972
- icon: i(Os)
8973
- }, null, 8, ["icon"])
8974
- ]),
8975
- _: 1
8976
- })) : F("", !0),
8977
- t.value.length > 1 ? (g(), se(i(Ut), {
8978
- key: 1,
8979
- onClick: (h) => v(_),
8980
- color: "warning"
8981
- }, {
8982
- default: le(() => [
8983
- Oe(i(ka), {
8984
- slot: "icon-only",
8985
- icon: i(Vs)
8986
- }, null, 8, ["icon"])
8987
- ]),
8988
- _: 2
8989
- }, 1032, ["onClick"])) : F("", !0)
8990
- ]),
8991
- _: 2
8992
- }, 1024)
8993
- ]),
8994
- _: 2
8995
- }, 1024))), 256))
8996
- ]));
8922
+ }), (d, f) => (g(!0), W(be, null, Pe(t.value, (b, _) => (g(), W("div", zs, [
8923
+ we("div", Us, [
8924
+ Se(i(hn), null, {
8925
+ default: re(() => [
8926
+ (g(!0), W(be, null, Pe(Object.keys(b), (h) => {
8927
+ var S, E, N, w, I;
8928
+ return g(), W(be, null, [
8929
+ i(bn)(b[h], d.data, d.computedData) ? (g(), se(i(yn), {
8930
+ key: `${_}-${h}`,
8931
+ size: ((S = b[h].grid) == null ? void 0 : S.xs) ?? "12",
8932
+ "size-sm": (E = b[h].grid) == null ? void 0 : E.sm,
8933
+ "size-md": (N = b[h].grid) == null ? void 0 : N.md,
8934
+ "size-lg": (w = b[h].grid) == null ? void 0 : w.lg,
8935
+ "size-xl": (I = b[h].grid) == null ? void 0 : I.xl,
8936
+ class: "ion-margin-bottom"
8937
+ }, {
8938
+ default: re(() => [
8939
+ (g(), se(ia(b[h].type), {
8940
+ modelValue: b[h],
8941
+ "onUpdate:modelValue": (C) => b[h] = C,
8942
+ schema: b,
8943
+ "ref-key": `${_}-${h}`,
8944
+ ref_for: !0,
8945
+ ref_key: "dynamicRefs",
8946
+ ref: l
8947
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "schema", "ref-key"]))
8948
+ ]),
8949
+ _: 2
8950
+ }, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) : F("", !0)
8951
+ ], 64);
8952
+ }), 256))
8953
+ ]),
8954
+ _: 2
8955
+ }, 1024)
8956
+ ]),
8957
+ we("div", Ws, [
8958
+ _ === t.value.length - 1 ? (g(), se(i(Ut), {
8959
+ key: 0,
8960
+ onClick: o,
8961
+ color: "primary"
8962
+ }, {
8963
+ default: re(() => [
8964
+ Se(i(_a), {
8965
+ slot: "icon-only",
8966
+ icon: i(Os)
8967
+ }, null, 8, ["icon"])
8968
+ ]),
8969
+ _: 1
8970
+ })) : F("", !0),
8971
+ t.value.length > 1 ? (g(), se(i(Ut), {
8972
+ key: 1,
8973
+ onClick: (h) => v(_),
8974
+ color: "warning"
8975
+ }, {
8976
+ default: re(() => [
8977
+ Se(i(_a), {
8978
+ slot: "icon-only",
8979
+ icon: i(Vs)
8980
+ }, null, 8, ["icon"])
8981
+ ]),
8982
+ _: 2
8983
+ }, 1032, ["onClick"])) : F("", !0)
8984
+ ])
8985
+ ]))), 256));
8997
8986
  }
8998
- }), Xs = {
8987
+ }), Ks = {
8999
8988
  install(e) {
9000
- e.component("VForm", Dr), e.component("TextInput", Tr), e.component("DateInput", Rs), e.component("NumberInput", Es), e.component("EmailInput", Bs), e.component("PasswordInput", Ls), e.component("SelectInput", Fs), e.component("TextAreaInput", qs), e.component("RepeatInput", zs);
8989
+ e.component("VForm", Dr), e.component("TextInput", Tr), e.component("DateInput", Rs), e.component("NumberInput", Es), e.component("EmailInput", Bs), e.component("PasswordInput", Ls), e.component("SelectInput", Fs), e.component("TextAreaInput", qs), e.component("RepeatInput", Qs);
9001
8990
  }
9002
8991
  };
9003
8992
  export {
9004
- Xs as VForm,
9005
- Xs as default
8993
+ Ks as VForm,
8994
+ Ks as default
9006
8995
  };