redmine-ui-kit 1.3.7 → 1.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as Oe, openBlock as m, createElementBlock as O, normalizeStyle as mt, createElementVNode as E, useSlots as Er, computed as H, normalizeClass as ye, Fragment as ve, createTextVNode as Ge, toDisplayString as me, renderSlot as q, withDirectives as Ye, vShow as bt, unref as c, isRef as lt, vModelCheckbox as Zi, createCommentVNode as $, ref as W, onMounted as et, nextTick as Mt, withKeys as de, withModifiers as We, vModelText as Bo, createBlock as pe, Teleport as wo, createVNode as Ce, Transition as Je, withCtx as ne, watchEffect as Gi, watch as ct, renderList as Ae, reactive as Gt, toRef as oa, onUnmounted as Oo, mergeProps as Be, createSlots as Ze, normalizeProps as nt, guardReactiveProps as vt, resolveDynamicComponent as ln, onBeforeUpdate as Ji, getCurrentScope as eu, onScopeDispose as tu } from "vue";
1
+ import { defineComponent as Oe, openBlock as m, createElementBlock as w, normalizeStyle as mt, createElementVNode as E, useSlots as Er, computed as H, normalizeClass as ye, Fragment as ve, createTextVNode as Ge, toDisplayString as me, renderSlot as q, withDirectives as Ue, vShow as bt, unref as c, isRef as lt, vModelCheckbox as Zi, createCommentVNode as $, ref as W, onMounted as et, nextTick as Mt, withKeys as ce, withModifiers as Ye, vModelText as Bo, createBlock as pe, Teleport as wo, createVNode as Ce, Transition as Je, withCtx as ne, watchEffect as Gi, watch as ct, renderList as Ae, reactive as Gt, toRef as oa, onUnmounted as Oo, mergeProps as Be, createSlots as Ze, normalizeProps as nt, guardReactiveProps as vt, resolveDynamicComponent as ln, onBeforeUpdate as Ji, getCurrentScope as eu, onScopeDispose as tu } from "vue";
2
2
  const nu = /* @__PURE__ */ E("span", null, null, -1), ru = [
3
3
  nu
4
4
  ], M0 = /* @__PURE__ */ Oe({
@@ -8,7 +8,7 @@ const nu = /* @__PURE__ */ E("span", null, null, -1), ru = [
8
8
  minHeight: { default: 320 }
9
9
  },
10
10
  setup(e) {
11
- return (t, n) => (m(), O("div", {
11
+ return (t, n) => (m(), w("div", {
12
12
  class: "rm-skeleton",
13
13
  style: mt({
14
14
  backgroundColor: e.color,
@@ -32,7 +32,7 @@ const au = ["disabled", "type"], ou = { class: "rm-button__label" }, lu = { clas
32
32
  emits: ["click"],
33
33
  setup(e) {
34
34
  const t = Er(), n = H(() => !!t.icon);
35
- return (r, a) => (m(), O("button", {
35
+ return (r, a) => (m(), w("button", {
36
36
  class: ye([
37
37
  "rm-button",
38
38
  e.size.length ? `rm-button--${e.size}` : "",
@@ -48,11 +48,11 @@ const au = ["disabled", "type"], ou = { class: "rm-button__label" }, lu = { clas
48
48
  onClick: a[0] || (a[0] = (o) => r.$emit("click", o))
49
49
  }, [
50
50
  E("div", ou, [
51
- e.label ? (m(), O(ve, { key: 0 }, [
51
+ e.label ? (m(), w(ve, { key: 0 }, [
52
52
  Ge(me(e.label), 1)
53
53
  ], 64)) : q(r.$slots, "default", { key: 1 })
54
54
  ]),
55
- Ye(E("div", lu, [
55
+ Ue(E("div", lu, [
56
56
  q(r.$slots, "icon")
57
57
  ], 512), [
58
58
  [bt, c(n)]
@@ -68,7 +68,7 @@ const iu = { class: "rm-progress" }, uu = { class: "rm-progress-line" }, su = /*
68
68
  },
69
69
  setup(e) {
70
70
  const t = e, n = H(() => !t.done || !t.all ? 0 : Math.round(t.done / t.all * 100));
71
- return (r, a) => (m(), O("div", iu, [
71
+ return (r, a) => (m(), w("div", iu, [
72
72
  E("div", uu, [
73
73
  E("div", {
74
74
  class: "rm-progress-line__done",
@@ -97,8 +97,8 @@ const cu = { class: "rm-checkbox" }, fu = ["id", "name", "disabled"], du = ["for
97
97
  t("update:modelValue", a);
98
98
  }
99
99
  });
100
- return (a, o) => (m(), O("div", cu, [
101
- Ye(E("input", {
100
+ return (a, o) => (m(), w("div", cu, [
101
+ Ue(E("input", {
102
102
  id: `${e.name}_checkbox`,
103
103
  "onUpdate:modelValue": o[0] || (o[0] = (l) => lt(r) ? r.value = l : null),
104
104
  type: "checkbox",
@@ -118,7 +118,7 @@ const cu = { class: "rm-checkbox" }, fu = ["id", "name", "disabled"], du = ["for
118
118
  { disabled: e.disabled }
119
119
  ])
120
120
  }, null, 10, du),
121
- e.label ? (m(), O("label", {
121
+ e.label ? (m(), w("label", {
122
122
  key: 0,
123
123
  for: `${e.name}_checkbox`,
124
124
  class: "rm-checkbox-label"
@@ -151,25 +151,25 @@ const yu = { class: "rm-attach" }, mu = {
151
151
  MAX_SIZE: "maxFileSizeError",
152
152
  FILE_TYPE: "fileTypeError"
153
153
  }
154
- }, a = W(), o = H(() => n.acceptFiles.split(",").map((s) => f(s)).join(", ")), l = H(() => n.deniedFiles.split(",").map((s) => f(s)).join(", ")), u = H(() => Math.round(n.maxFileSize / 1024 / 1024));
155
- function f(s, g = "/") {
156
- return s.split(g).slice(-1)[0];
154
+ }, a = W(), o = H(() => n.acceptFiles.split(",").map((s) => d(s)).join(", ")), l = H(() => n.deniedFiles.split(",").map((s) => d(s)).join(", ")), u = H(() => Math.round(n.maxFileSize / 1024 / 1024));
155
+ function d(s, b = "/") {
156
+ return s.split(b).slice(-1)[0];
157
157
  }
158
158
  function y(s) {
159
159
  var C;
160
160
  if (!((C = s.target.files) != null && C.length) || !a.value)
161
161
  return;
162
- const g = d({ files: s.target.files, target: a.value });
163
- t("attached", g);
162
+ const b = f({ files: s.target.files, target: a.value });
163
+ t("attached", b);
164
164
  }
165
- function w(s, g) {
166
- t("upload:error", { errorType: s, errorContent: g });
165
+ function O(s, b) {
166
+ t("upload:error", { errorType: s, errorContent: b });
167
167
  }
168
- function d({ files: s, target: g }) {
168
+ function f({ files: s, target: b }) {
169
169
  const { MAX_SIZE: C, FILE_TYPE: S } = r.ERROR_TYPES, F = new DataTransfer();
170
170
  for (const M of Object.values(s)) {
171
171
  if (M.size > n.maxFileSize) {
172
- w(
172
+ O(
173
173
  C,
174
174
  {
175
175
  fileName: M.name,
@@ -178,10 +178,10 @@ const yu = { class: "rm-attach" }, mu = {
178
178
  );
179
179
  continue;
180
180
  }
181
- const V = f(M.type), R = f(M.name, ".");
181
+ const V = d(M.type), R = d(M.name, ".");
182
182
  let j = !1;
183
183
  if (n.deniedFiles && (j = n.deniedFiles.includes(R) || n.deniedFiles.includes(V)), n.acceptFiles && (j = !n.acceptFiles.includes(R) || !n.acceptFiles.includes(V)), j) {
184
- w(
184
+ O(
185
185
  S,
186
186
  { fileName: M.name, errorInfo: M.type }
187
187
  );
@@ -189,9 +189,9 @@ const yu = { class: "rm-attach" }, mu = {
189
189
  }
190
190
  F.items.add(M);
191
191
  }
192
- return g.files = F.files, F.files;
192
+ return b.files = F.files, F.files;
193
193
  }
194
- return (s, g) => (m(), O("div", yu, [
194
+ return (s, b) => (m(), w("div", yu, [
195
195
  E("label", mu, [
196
196
  E("span", vu, me(e.attachLabel), 1),
197
197
  E("input", {
@@ -207,11 +207,11 @@ const yu = { class: "rm-attach" }, mu = {
207
207
  }, null, 40, hu)
208
208
  ]),
209
209
  E("span", _u, [
210
- c(l) && c(l).length ? (m(), O("span", bu, [
210
+ c(l) && c(l).length ? (m(), w("span", bu, [
211
211
  Ge(me(e.deniedFilesLabel) + ": " + me(c(l)), 1),
212
212
  gu
213
213
  ])) : $("", !0),
214
- c(o) && c(o).length ? (m(), O("span", wu, [
214
+ c(o) && c(o).length ? (m(), w("span", wu, [
215
215
  Ge(me(e.acceptFilesLabel) + ": " + me(c(o)), 1),
216
216
  Ou
217
217
  ])) : $("", !0),
@@ -227,11 +227,11 @@ function ku() {
227
227
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
228
228
  return rn($u);
229
229
  }
230
- const Le = [];
230
+ const Ve = [];
231
231
  for (let e = 0; e < 256; ++e)
232
- Le.push((e + 256).toString(16).slice(1));
232
+ Ve.push((e + 256).toString(16).slice(1));
233
233
  function Pu(e, t = 0) {
234
- return (Le[e[t + 0]] + Le[e[t + 1]] + Le[e[t + 2]] + Le[e[t + 3]] + "-" + Le[e[t + 4]] + Le[e[t + 5]] + "-" + Le[e[t + 6]] + Le[e[t + 7]] + "-" + Le[e[t + 8]] + Le[e[t + 9]] + "-" + Le[e[t + 10]] + Le[e[t + 11]] + Le[e[t + 12]] + Le[e[t + 13]] + Le[e[t + 14]] + Le[e[t + 15]]).toLowerCase();
234
+ return (Ve[e[t + 0]] + Ve[e[t + 1]] + Ve[e[t + 2]] + Ve[e[t + 3]] + "-" + Ve[e[t + 4]] + Ve[e[t + 5]] + "-" + Ve[e[t + 6]] + Ve[e[t + 7]] + "-" + Ve[e[t + 8]] + Ve[e[t + 9]] + "-" + Ve[e[t + 10]] + Ve[e[t + 11]] + Ve[e[t + 12]] + Ve[e[t + 13]] + Ve[e[t + 14]] + Ve[e[t + 15]]).toLowerCase();
235
235
  }
236
236
  const Tu = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Yo = {
237
237
  randomUUID: Tu
@@ -269,7 +269,7 @@ const xu = ["for"], Su = { class: "rm-input-wrapper" }, Ru = ["id", "maxlength",
269
269
  return !n.modelValue && o.value && l.value && C(l.value, o.value), n.modelValue;
270
270
  },
271
271
  set(S) {
272
- n.isAutoGrow && l.value && w(l.value), t("update:modelValue", S);
272
+ n.isAutoGrow && l.value && O(l.value), t("update:modelValue", S);
273
273
  }
274
274
  });
275
275
  et(() => {
@@ -277,39 +277,39 @@ const xu = ["for"], Su = { class: "rm-input-wrapper" }, Ru = ["id", "maxlength",
277
277
  Mt().then(() => {
278
278
  var F;
279
279
  o.value = ((F = l.value) == null ? void 0 : F.offsetHeight) || 0;
280
- }), n.isAutoGrow && l.value && w(l.value), n.isAutofocus && ((S = l.value) == null || S.focus());
280
+ }), n.isAutoGrow && l.value && O(l.value), n.isAutofocus && ((S = l.value) == null || S.focus());
281
281
  });
282
- function f(S) {
282
+ function d(S) {
283
283
  a.value = !0, t("focus", S);
284
284
  }
285
285
  function y(S) {
286
286
  a.value = !1, t("blur", S);
287
287
  }
288
- function w(S) {
288
+ function O(S) {
289
289
  C(S, 5), C(S, S.scrollHeight);
290
290
  }
291
- function d(S) {
291
+ function f(S) {
292
292
  t("enter-press", S);
293
293
  }
294
294
  function s(S) {
295
295
  t("ctrl-enter-press", S);
296
296
  }
297
- function g(S) {
297
+ function b(S) {
298
298
  t("alt-enter-press", S);
299
299
  }
300
300
  function C(S, F) {
301
301
  S.style.height = `${F}px`;
302
302
  }
303
- return (S, F) => (m(), O("div", {
303
+ return (S, F) => (m(), w("div", {
304
304
  class: ye(["rm-input", { disabled: e.disabled }])
305
305
  }, [
306
- e.label ? (m(), O("label", {
306
+ e.label ? (m(), w("label", {
307
307
  key: 0,
308
308
  for: c(r),
309
309
  class: "rm-input__label"
310
310
  }, me(e.label), 9, xu)) : $("", !0),
311
311
  E("div", Su, [
312
- e.isAutoGrow ? Ye((m(), O("textarea", {
312
+ e.isAutoGrow ? Ue((m(), w("textarea", {
313
313
  key: 0,
314
314
  id: c(r),
315
315
  ref_key: "textareaRef",
@@ -320,17 +320,17 @@ const xu = ["for"], Su = { class: "rm-input-wrapper" }, Ru = ["id", "maxlength",
320
320
  required: e.required,
321
321
  placeholder: e.placeholder,
322
322
  disabled: e.disabled,
323
- onKeypress: de(d, ["enter"]),
323
+ onKeypress: ce(f, ["enter"]),
324
324
  onKeydown: [
325
- de(We(s, ["ctrl"]), ["enter"]),
326
- de(We(g, ["alt"]), ["enter"])
325
+ ce(Ye(s, ["ctrl"]), ["enter"]),
326
+ ce(Ye(b, ["alt"]), ["enter"])
327
327
  ],
328
- onFocus: f,
328
+ onFocus: d,
329
329
  onBlur: y,
330
330
  onChange: F[1] || (F[1] = ({ target: M }) => t("change", M.value))
331
331
  }, null, 40, Ru)), [
332
332
  [Bo, c(u)]
333
- ]) : Ye((m(), O("input", {
333
+ ]) : Ue((m(), w("input", {
334
334
  key: 1,
335
335
  id: c(r),
336
336
  "onUpdate:modelValue": F[2] || (F[2] = (M) => lt(u) ? u.value = M : null),
@@ -339,15 +339,15 @@ const xu = ["for"], Su = { class: "rm-input-wrapper" }, Ru = ["id", "maxlength",
339
339
  required: e.required,
340
340
  placeholder: e.placeholder,
341
341
  disabled: e.disabled,
342
- onKeypress: de(d, ["enter"]),
343
- onKeydown: de(We(s, ["ctrl"]), ["enter"]),
344
- onFocus: f,
342
+ onKeypress: ce(f, ["enter"]),
343
+ onKeydown: ce(Ye(s, ["ctrl"]), ["enter"]),
344
+ onFocus: d,
345
345
  onBlur: y,
346
346
  onChange: F[3] || (F[3] = ({ target: M }) => t("change", M.value))
347
347
  }, null, 40, Mu)), [
348
348
  [Bo, c(u)]
349
349
  ]),
350
- Ye(E("span", { class: "rm-input__hint" }, me(e.hint), 513), [
350
+ Ue(E("span", { class: "rm-input__hint" }, me(e.hint), 513), [
351
351
  [bt, a.value]
352
352
  ])
353
353
  ])
@@ -398,17 +398,17 @@ const Nu = "data:image/svg+xml;base64,PHN2ZwogICAgd2lkdGg9IjIyIgogICAgaGVpZ2h0PS
398
398
  appear: ""
399
399
  }, {
400
400
  default: ne(() => [
401
- e.isActive ? Ye((m(), O("div", Au, [
401
+ e.isActive ? Ue((m(), w("div", Au, [
402
402
  E("div", {
403
403
  class: "rm-modal__overlay",
404
- onClick: We(r, ["self"])
404
+ onClick: Ye(r, ["self"])
405
405
  }, null, 8, Iu),
406
406
  Ce(Je, {
407
407
  name: e.contentTransition.length ? e.contentTransition : e.transitionName,
408
408
  mode: "out-in"
409
409
  }, {
410
410
  default: ne(() => [
411
- e.isDataLoaded ? (m(), O("div", {
411
+ e.isDataLoaded ? (m(), w("div", {
412
412
  key: 0,
413
413
  class: ye(["rm-modal-wrapper", e.contentClass])
414
414
  }, [
@@ -428,9 +428,9 @@ const Nu = "data:image/svg+xml;base64,PHN2ZwogICAgd2lkdGg9IjIyIgogICAgaGVpZ2h0PS
428
428
  E("div", Bu, [
429
429
  q(a.$slots, "default")
430
430
  ])
431
- ], 2)) : (m(), O("div", Yu, [
431
+ ], 2)) : (m(), w("div", Yu, [
432
432
  q(a.$slots, "loader"),
433
- a.$slots.loader ? $("", !0) : (m(), O("div", Uu))
433
+ a.$slots.loader ? $("", !0) : (m(), w("div", Uu))
434
434
  ]))
435
435
  ]),
436
436
  _: 3
@@ -550,14 +550,14 @@ const Lu = (e, t = 150) => {
550
550
  },
551
551
  emits: ["update:modelValue", "close", "clear", "select", "chips:remove"],
552
552
  setup(e, { emit: t }) {
553
- const n = e, r = W(n.focused), a = W([]), o = W(""), l = W(0), u = W(), f = W(), y = H({
553
+ const n = e, r = W(n.focused), a = W([]), o = W(""), l = W(0), u = W(), d = W(), y = H({
554
554
  get() {
555
555
  return n.modelValue;
556
556
  },
557
557
  set(M) {
558
558
  t("update:modelValue", M);
559
559
  }
560
- }), w = H(() => o.value ? n.options.filter(({ name: M }) => M.toLowerCase().includes(o.value.toLowerCase())) : n.options);
560
+ }), O = H(() => o.value ? n.options.filter(({ name: M }) => M.toLowerCase().includes(o.value.toLowerCase())) : n.options);
561
561
  Gi(() => {
562
562
  n.selectedOptions && (a.value = n.selectedOptions);
563
563
  }), ct(() => n.closable, (M) => r.value = !M), ct(r, (M) => {
@@ -566,14 +566,14 @@ const Lu = (e, t = 150) => {
566
566
  var M, V;
567
567
  n.focused ? (M = u.value) == null || M.focus() : (V = u.value) == null || V.blur();
568
568
  });
569
- function d() {
569
+ function f() {
570
570
  var M;
571
571
  y.value = "", o.value = "", n.focused && ((M = u.value) == null || M.focus()), t("clear");
572
572
  }
573
573
  function s(M) {
574
574
  n.multiple || (y.value = M.name, r.value = !1), n.useChips && !a.value.find((V) => V.name === M.name) && (a.value = [...a.value, M]), o.value = "", t("select", M);
575
575
  }
576
- function g(M) {
576
+ function b(M) {
577
577
  return n.useChips && !!a.value.find((V) => V.name === M.name);
578
578
  }
579
579
  const C = Lu(function({ target: M }) {
@@ -587,15 +587,15 @@ const Lu = (e, t = 150) => {
587
587
  a.value = a.value.filter((V) => V.name !== M.name), t("chips:remove", M);
588
588
  }
589
589
  async function F() {
590
- if (await Mt(), !f.value)
590
+ if (await Mt(), !d.value)
591
591
  return;
592
- const M = window.innerHeight, { bottom: V } = f.value.getBoundingClientRect();
592
+ const M = window.innerHeight, { bottom: V } = d.value.getBoundingClientRect();
593
593
  M > V || (l.value = V - M + 8);
594
594
  }
595
- return (M, V) => Ye((m(), O("div", {
595
+ return (M, V) => Ue((m(), w("div", {
596
596
  class: ye(["rm-select", { "rm-select--with-chips": e.useChips }])
597
597
  }, [
598
- e.label ? (m(), O("label", {
598
+ e.label ? (m(), w("label", {
599
599
  key: 0,
600
600
  for: `select__${e.name}`
601
601
  }, me(e.label), 9, Ku)) : $("", !0),
@@ -605,10 +605,10 @@ const Lu = (e, t = 150) => {
605
605
  style: mt({
606
606
  display: e.useChips ? "flex" : "block"
607
607
  }),
608
- onClick: V[2] || (V[2] = We((R) => r.value = !0, ["self"]))
608
+ onClick: V[2] || (V[2] = Ye((R) => r.value = !0, ["self"]))
609
609
  }, [
610
- e.useChips ? (m(), O("div", Qu, [
611
- (m(!0), O(ve, null, Ae(a.value, (R, j) => (m(), O("div", {
610
+ e.useChips ? (m(), w("div", Qu, [
611
+ (m(!0), w(ve, null, Ae(a.value, (R, j) => (m(), w("div", {
612
612
  key: `chip__${j}`,
613
613
  class: "rm-select-chip"
614
614
  }, [
@@ -638,7 +638,7 @@ const Lu = (e, t = 150) => {
638
638
  E("div", ns, [
639
639
  Ce(ht, {
640
640
  class: ye(["rm-select-input__cheveron", { open: r.value }]),
641
- onClick: V[3] || (V[3] = We((R) => r.value = !r.value, ["prevent"]))
641
+ onClick: V[3] || (V[3] = Ye((R) => r.value = !r.value, ["prevent"]))
642
642
  }, {
643
643
  default: ne(() => [
644
644
  rs
@@ -653,7 +653,7 @@ const Lu = (e, t = 150) => {
653
653
  e.removable && (c(y) || o.value) ? (m(), pe(ht, {
654
654
  key: 0,
655
655
  class: "rm-select-input__remove",
656
- onClick: We(d, ["prevent"])
656
+ onClick: Ye(f, ["prevent"])
657
657
  }, {
658
658
  default: ne(() => [
659
659
  as
@@ -667,20 +667,20 @@ const Lu = (e, t = 150) => {
667
667
  ]),
668
668
  Ce(Je, { name: "fade" }, {
669
669
  default: ne(() => [
670
- Ye(E("ul", {
670
+ Ue(E("ul", {
671
671
  ref_key: "selectOptions",
672
- ref: f,
672
+ ref: d,
673
673
  class: "rm-select-inner"
674
674
  }, [
675
675
  M.$slots["options-list"] ? q(M.$slots, "options-list", {
676
676
  key: 1,
677
677
  options: e.options
678
- }) : (m(), O(ve, { key: 0 }, [
679
- c(w) && c(w).length ? (m(!0), O(ve, { key: 0 }, Ae(c(w), (R, j) => (m(), O("li", {
678
+ }) : (m(), w(ve, { key: 0 }, [
679
+ c(O) && c(O).length ? (m(!0), w(ve, { key: 0 }, Ae(c(O), (R, j) => (m(), w("li", {
680
680
  key: `${j}_option`,
681
- class: ye(["rm-select-inner__item", { active: g(R) }]),
681
+ class: ye(["rm-select-inner__item", { active: b(R) }]),
682
682
  onClick: (te) => s(R)
683
- }, me(R.name), 11, os))), 128)) : (m(), O("li", ls, me(e.emptySelectLabel), 1))
683
+ }, me(R.name), 11, os))), 128)) : (m(), w("li", ls, me(e.emptySelectLabel), 1))
684
684
  ], 64))
685
685
  ], 512), [
686
686
  [bt, r.value]
@@ -717,7 +717,7 @@ const is = (e, t) => {
717
717
  fs
718
718
  ];
719
719
  function ps(e, t) {
720
- return m(), O("svg", ss, ds);
720
+ return m(), w("svg", ss, ds);
721
721
  }
722
722
  const ys = /* @__PURE__ */ is(us, [["render", ps]]), ms = {
723
723
  key: 0,
@@ -739,50 +739,60 @@ const ys = /* @__PURE__ */ is(us, [["render", ps]]), ms = {
739
739
  editByFocus: { type: Boolean, default: !1 },
740
740
  hasActions: { type: Boolean, default: !0 },
741
741
  autoSave: { type: Boolean, default: !1 },
742
+ isAutoGrow: { type: Boolean, default: !0 },
742
743
  saveLabel: { default: "Save" },
743
744
  cancelLabel: { default: "Cancel" }
744
745
  },
745
746
  emits: ["change"],
746
747
  setup(e, { emit: t }) {
747
748
  const n = e, r = W(!1), a = W(n.value);
748
- ct(() => n.value, (w) => a.value = w);
749
+ ct(() => n.value, (f) => a.value = f);
749
750
  function o() {
750
- t("change", a.value), f();
751
+ t("change", a.value), y();
751
752
  }
752
- function l(w) {
753
- a.value = w, (n.autoSave || !n.hasActions) && o();
753
+ function l(f) {
754
+ a.value = f, (n.autoSave || !n.hasActions) && o();
754
755
  }
755
- function u() {
756
- a.value = n.value;
756
+ function u(f) {
757
+ t(f, a.value);
757
758
  }
758
- function f() {
759
- u(), r.value = !1;
759
+ function d() {
760
+ a.value = n.value;
760
761
  }
761
762
  function y() {
763
+ d(), r.value = !1;
764
+ }
765
+ function O() {
762
766
  n.editByFocus && (r.value = !0);
763
767
  }
764
- return (w, d) => Ye((m(), O("div", {
768
+ return (f, s) => Ue((m(), w("div", {
765
769
  class: ye(["rm-editable", { active: r.value }])
766
770
  }, [
767
- r.value ? (m(), O("div", ms, [
768
- q(w.$slots, "header")
771
+ r.value ? (m(), w("div", ms, [
772
+ q(f.$slots, "header")
769
773
  ])) : $("", !0),
770
774
  E("div", {
771
775
  class: "rm-editable__content",
772
- onClick: y
776
+ onClick: O
773
777
  }, [
774
778
  r.value ? (m(), pe(Cu, {
775
779
  key: 1,
776
780
  "model-value": a.value,
777
781
  maxlength: e.maxlength,
782
+ "is-auto-grow": e.isAutoGrow,
778
783
  class: "rm-editable__content-input",
779
- onChange: l
780
- }, null, 8, ["model-value", "maxlength"])) : (m(), O("div", vs, [
781
- q(w.$slots, "default", { value: e.value }),
784
+ onChange: l,
785
+ onKeypress: s[1] || (s[1] = ce((b) => u("press-enter"), ["enter"])),
786
+ onKeydown: [
787
+ s[2] || (s[2] = ce(Ye((b) => u("press-ctrl-change"), ["ctrl"]), ["enter"])),
788
+ s[3] || (s[3] = ce(Ye((b) => u("press-alt-change"), ["alt"]), ["enter"]))
789
+ ]
790
+ }, null, 8, ["model-value", "maxlength", "is-auto-grow"])) : (m(), w("div", vs, [
791
+ q(f.$slots, "default", { value: e.value }),
782
792
  e.editByFocus ? $("", !0) : (m(), pe(ht, {
783
793
  key: 0,
784
794
  class: "rm-editable__content-slot__edit rm-common-button rm-common-button--flat",
785
- onClick: d[0] || (d[0] = (s) => r.value = !0)
795
+ onClick: s[0] || (s[0] = (b) => r.value = !0)
786
796
  }, {
787
797
  default: ne(() => [
788
798
  Ce(ys)
@@ -791,9 +801,9 @@ const ys = /* @__PURE__ */ is(us, [["render", ps]]), ms = {
791
801
  }))
792
802
  ]))
793
803
  ]),
794
- r.value ? (m(), O("div", hs, [
795
- w.$slots.footer ? q(w.$slots, "footer", { key: 0 }) : $("", !0),
796
- !w.$slots.footer && e.hasActions ? (m(), O("div", _s, [
804
+ r.value ? (m(), w("div", hs, [
805
+ f.$slots.footer ? q(f.$slots, "footer", { key: 0 }) : $("", !0),
806
+ !f.$slots.footer && e.hasActions ? (m(), w("div", _s, [
797
807
  Ce(ht, {
798
808
  label: e.saveLabel,
799
809
  class: "rm-common-button rm-common-button--flat rm-common-button--blue",
@@ -802,12 +812,12 @@ const ys = /* @__PURE__ */ is(us, [["render", ps]]), ms = {
802
812
  Ce(ht, {
803
813
  label: e.cancelLabel,
804
814
  class: "rm-common-button rm-common-button--flat",
805
- onClick: f
815
+ onClick: y
806
816
  }, null, 8, ["label"])
807
817
  ])) : $("", !0)
808
818
  ])) : $("", !0)
809
819
  ], 2)), [
810
- [c(Jt), f]
820
+ [c(Jt), y]
811
821
  ]);
812
822
  }
813
823
  });
@@ -826,7 +836,7 @@ const bs = {
826
836
  gs
827
837
  ];
828
838
  function Os(e, t) {
829
- return m(), O("svg", bs, ws);
839
+ return m(), w("svg", bs, ws);
830
840
  }
831
841
  const $s = { render: Os }, ks = {
832
842
  key: 0,
@@ -843,8 +853,8 @@ const $s = { render: Os }, ks = {
843
853
  setup(e, { emit: t }) {
844
854
  return (n, r) => (m(), pe(Je, { name: "slide" }, {
845
855
  default: ne(() => [
846
- e.visibility ? (m(), O("div", ks, [
847
- Ye((m(), O("div", {
856
+ e.visibility ? (m(), w("div", ks, [
857
+ Ue((m(), w("div", {
848
858
  class: ye(["rm-alert", e.status])
849
859
  }, [
850
860
  E("div", Ps, [
@@ -892,7 +902,7 @@ const Ss = {
892
902
  setup(e, { emit: t }) {
893
903
  return (n, r) => (m(), pe(Je, { name: "fade" }, {
894
904
  default: ne(() => [
895
- e.visibility ? Ye((m(), O("div", Ss, [
905
+ e.visibility ? Ue((m(), w("div", Ss, [
896
906
  E("h3", Rs, me(e.title), 1),
897
907
  E("div", Ms, [
898
908
  Ce(ht, {
@@ -924,7 +934,7 @@ const Cs = {
924
934
  setup(e, { emit: t }) {
925
935
  return (n, r) => (m(), pe(Je, { name: "slide" }, {
926
936
  default: ne(() => [
927
- e.isActive ? Ye((m(), O("div", Cs, [
937
+ e.isActive ? Ue((m(), w("div", Cs, [
928
938
  q(n.$slots, "default")
929
939
  ])), [
930
940
  [c(Jt), () => t("update:isActive", !1)]
@@ -983,7 +993,7 @@ function sn(e) {
983
993
  function gi(e, t) {
984
994
  if (J(2, arguments), !t || sn(t) !== "object")
985
995
  return new Date(NaN);
986
- var n = t.years ? oe(t.years) : 0, r = t.months ? oe(t.months) : 0, a = t.weeks ? oe(t.weeks) : 0, o = t.days ? oe(t.days) : 0, l = t.hours ? oe(t.hours) : 0, u = t.minutes ? oe(t.minutes) : 0, f = t.seconds ? oe(t.seconds) : 0, y = ie(e), w = r || n ? st(y, r + n * 12) : y, d = o || a ? gt(w, o + a * 7) : w, s = u + l * 60, g = f + s * 60, C = g * 1e3, S = new Date(d.getTime() + C);
996
+ var n = t.years ? oe(t.years) : 0, r = t.months ? oe(t.months) : 0, a = t.weeks ? oe(t.weeks) : 0, o = t.days ? oe(t.days) : 0, l = t.hours ? oe(t.hours) : 0, u = t.minutes ? oe(t.minutes) : 0, d = t.seconds ? oe(t.seconds) : 0, y = ie(e), O = r || n ? st(y, r + n * 12) : y, f = o || a ? gt(O, o + a * 7) : O, s = u + l * 60, b = d + s * 60, C = b * 1e3, S = new Date(f.getTime() + C);
987
997
  return S;
988
998
  }
989
999
  function Ns(e, t) {
@@ -996,12 +1006,12 @@ function wt() {
996
1006
  return As;
997
1007
  }
998
1008
  function la(e, t) {
999
- var n, r, a, o, l, u, f, y;
1009
+ var n, r, a, o, l, u, d, y;
1000
1010
  J(1, arguments);
1001
- var w = wt(), d = oe((n = (r = (a = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && a !== void 0 ? a : w.weekStartsOn) !== null && r !== void 0 ? r : (f = w.locale) === null || f === void 0 || (y = f.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && n !== void 0 ? n : 0);
1002
- if (!(d >= 0 && d <= 6))
1011
+ var O = wt(), f = oe((n = (r = (a = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && a !== void 0 ? a : O.weekStartsOn) !== null && r !== void 0 ? r : (d = O.locale) === null || d === void 0 || (y = d.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && n !== void 0 ? n : 0);
1012
+ if (!(f >= 0 && f <= 6))
1003
1013
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1004
- var s = ie(e), g = s.getDay(), C = (g < d ? 7 : 0) + g - d;
1014
+ var s = ie(e), b = s.getDay(), C = (b < f ? 7 : 0) + b - f;
1005
1015
  return s.setDate(s.getDate() - C), s.setHours(0, 0, 0, 0), s;
1006
1016
  }
1007
1017
  function Xn(e) {
@@ -1068,22 +1078,22 @@ function Lo(e, t) {
1068
1078
  var r = e || {}, a = ie(r.start), o = ie(r.end), l = o.getTime();
1069
1079
  if (!(a.getTime() <= l))
1070
1080
  throw new RangeError("Invalid interval");
1071
- var u = [], f = a;
1072
- f.setHours(0, 0, 0, 0);
1081
+ var u = [], d = a;
1082
+ d.setHours(0, 0, 0, 0);
1073
1083
  var y = Number((n = t == null ? void 0 : t.step) !== null && n !== void 0 ? n : 1);
1074
1084
  if (y < 1 || isNaN(y))
1075
1085
  throw new RangeError("`options.step` must be a number greater than 1");
1076
- for (; f.getTime() <= l; )
1077
- u.push(ie(f)), f.setDate(f.getDate() + y), f.setHours(0, 0, 0, 0);
1086
+ for (; d.getTime() <= l; )
1087
+ u.push(ie(d)), d.setDate(d.getDate() + y), d.setHours(0, 0, 0, 0);
1078
1088
  return u;
1079
1089
  }
1080
1090
  function Ls(e, t) {
1081
- var n, r, a, o, l, u, f, y;
1091
+ var n, r, a, o, l, u, d, y;
1082
1092
  J(1, arguments);
1083
- var w = wt(), d = oe((n = (r = (a = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && a !== void 0 ? a : w.weekStartsOn) !== null && r !== void 0 ? r : (f = w.locale) === null || f === void 0 || (y = f.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && n !== void 0 ? n : 0);
1084
- if (!(d >= 0 && d <= 6))
1093
+ var O = wt(), f = oe((n = (r = (a = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && a !== void 0 ? a : O.weekStartsOn) !== null && r !== void 0 ? r : (d = O.locale) === null || d === void 0 || (y = d.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && n !== void 0 ? n : 0);
1094
+ if (!(f >= 0 && f <= 6))
1085
1095
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1086
- var s = ie(e), g = s.getDay(), C = (g < d ? -7 : 0) + 6 - (g - d);
1096
+ var s = ie(e), b = s.getDay(), C = (b < f ? -7 : 0) + 6 - (b - f);
1087
1097
  return s.setDate(s.getDate() + C), s.setHours(23, 59, 59, 999), s;
1088
1098
  }
1089
1099
  function $i(e, t) {
@@ -1127,33 +1137,33 @@ function Pi(e) {
1127
1137
  return Math.round(n / Ws) + 1;
1128
1138
  }
1129
1139
  function Rt(e, t) {
1130
- var n, r, a, o, l, u, f, y;
1140
+ var n, r, a, o, l, u, d, y;
1131
1141
  J(1, arguments);
1132
- var w = wt(), d = oe((n = (r = (a = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && a !== void 0 ? a : w.weekStartsOn) !== null && r !== void 0 ? r : (f = w.locale) === null || f === void 0 || (y = f.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && n !== void 0 ? n : 0);
1133
- if (!(d >= 0 && d <= 6))
1142
+ var O = wt(), f = oe((n = (r = (a = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && a !== void 0 ? a : O.weekStartsOn) !== null && r !== void 0 ? r : (d = O.locale) === null || d === void 0 || (y = d.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && n !== void 0 ? n : 0);
1143
+ if (!(f >= 0 && f <= 6))
1134
1144
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1135
- var s = ie(e), g = s.getUTCDay(), C = (g < d ? 7 : 0) + g - d;
1145
+ var s = ie(e), b = s.getUTCDay(), C = (b < f ? 7 : 0) + b - f;
1136
1146
  return s.setUTCDate(s.getUTCDate() - C), s.setUTCHours(0, 0, 0, 0), s;
1137
1147
  }
1138
1148
  function Po(e, t) {
1139
- var n, r, a, o, l, u, f, y;
1149
+ var n, r, a, o, l, u, d, y;
1140
1150
  J(1, arguments);
1141
- var w = ie(e), d = w.getUTCFullYear(), s = wt(), g = oe((n = (r = (a = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : s.firstWeekContainsDate) !== null && r !== void 0 ? r : (f = s.locale) === null || f === void 0 || (y = f.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
1142
- if (!(g >= 1 && g <= 7))
1151
+ var O = ie(e), f = O.getUTCFullYear(), s = wt(), b = oe((n = (r = (a = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : s.firstWeekContainsDate) !== null && r !== void 0 ? r : (d = s.locale) === null || d === void 0 || (y = d.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
1152
+ if (!(b >= 1 && b <= 7))
1143
1153
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1144
1154
  var C = new Date(0);
1145
- C.setUTCFullYear(d + 1, 0, g), C.setUTCHours(0, 0, 0, 0);
1155
+ C.setUTCFullYear(f + 1, 0, b), C.setUTCHours(0, 0, 0, 0);
1146
1156
  var S = Rt(C, t), F = new Date(0);
1147
- F.setUTCFullYear(d, 0, g), F.setUTCHours(0, 0, 0, 0);
1157
+ F.setUTCFullYear(f, 0, b), F.setUTCHours(0, 0, 0, 0);
1148
1158
  var M = Rt(F, t);
1149
- return w.getTime() >= S.getTime() ? d + 1 : w.getTime() >= M.getTime() ? d : d - 1;
1159
+ return O.getTime() >= S.getTime() ? f + 1 : O.getTime() >= M.getTime() ? f : f - 1;
1150
1160
  }
1151
1161
  function js(e, t) {
1152
- var n, r, a, o, l, u, f, y;
1162
+ var n, r, a, o, l, u, d, y;
1153
1163
  J(1, arguments);
1154
- var w = wt(), d = oe((n = (r = (a = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : w.firstWeekContainsDate) !== null && r !== void 0 ? r : (f = w.locale) === null || f === void 0 || (y = f.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), s = Po(e, t), g = new Date(0);
1155
- g.setUTCFullYear(s, 0, d), g.setUTCHours(0, 0, 0, 0);
1156
- var C = Rt(g, t);
1164
+ var O = wt(), f = oe((n = (r = (a = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : O.firstWeekContainsDate) !== null && r !== void 0 ? r : (d = O.locale) === null || d === void 0 || (y = d.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), s = Po(e, t), b = new Date(0);
1165
+ b.setUTCFullYear(s, 0, f), b.setUTCHours(0, 0, 0, 0);
1166
+ var C = Rt(b, t);
1157
1167
  return C;
1158
1168
  }
1159
1169
  var zs = 6048e5;
@@ -1997,8 +2007,8 @@ function Ft(e) {
1997
2007
  var o = e.defaultFormattingWidth || e.defaultWidth, l = n != null && n.width ? String(n.width) : o;
1998
2008
  a = e.formattingValues[l] || e.formattingValues[o];
1999
2009
  } else {
2000
- var u = e.defaultWidth, f = n != null && n.width ? String(n.width) : e.defaultWidth;
2001
- a = e.values[f] || e.values[u];
2010
+ var u = e.defaultWidth, d = n != null && n.width ? String(n.width) : e.defaultWidth;
2011
+ a = e.values[d] || e.values[u];
2002
2012
  }
2003
2013
  var y = e.argumentCallback ? e.argumentCallback(t) : t;
2004
2014
  return a[y];
@@ -2129,16 +2139,16 @@ function Wt(e) {
2129
2139
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(a);
2130
2140
  if (!o)
2131
2141
  return null;
2132
- var l = o[0], u = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], f = Array.isArray(u) ? wc(u, function(d) {
2133
- return d.test(l);
2134
- }) : gc(u, function(d) {
2135
- return d.test(l);
2142
+ var l = o[0], u = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(u) ? wc(u, function(f) {
2143
+ return f.test(l);
2144
+ }) : gc(u, function(f) {
2145
+ return f.test(l);
2136
2146
  }), y;
2137
- y = e.valueCallback ? e.valueCallback(f) : f, y = n.valueCallback ? n.valueCallback(y) : y;
2138
- var w = t.slice(l.length);
2147
+ y = e.valueCallback ? e.valueCallback(d) : d, y = n.valueCallback ? n.valueCallback(y) : y;
2148
+ var O = t.slice(l.length);
2139
2149
  return {
2140
2150
  value: y,
2141
- rest: w
2151
+ rest: O
2142
2152
  };
2143
2153
  };
2144
2154
  }
@@ -2268,12 +2278,12 @@ var Bc = {
2268
2278
  const Ri = Bc;
2269
2279
  var Yc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Uc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Lc = /^'([^]*?)'?$/, Vc = /''/g, Hc = /[a-zA-Z]/;
2270
2280
  function Xt(e, t, n) {
2271
- var r, a, o, l, u, f, y, w, d, s, g, C, S, F, M, V, R, j;
2281
+ var r, a, o, l, u, d, y, O, f, s, b, C, S, F, M, V, R, j;
2272
2282
  J(2, arguments);
2273
- var te = String(t), k = wt(), P = (r = (a = n == null ? void 0 : n.locale) !== null && a !== void 0 ? a : k.locale) !== null && r !== void 0 ? r : Ri, N = oe((o = (l = (u = (f = n == null ? void 0 : n.firstWeekContainsDate) !== null && f !== void 0 ? f : n == null || (y = n.locale) === null || y === void 0 || (w = y.options) === null || w === void 0 ? void 0 : w.firstWeekContainsDate) !== null && u !== void 0 ? u : k.firstWeekContainsDate) !== null && l !== void 0 ? l : (d = k.locale) === null || d === void 0 || (s = d.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
2283
+ var te = String(t), k = wt(), P = (r = (a = n == null ? void 0 : n.locale) !== null && a !== void 0 ? a : k.locale) !== null && r !== void 0 ? r : Ri, N = oe((o = (l = (u = (d = n == null ? void 0 : n.firstWeekContainsDate) !== null && d !== void 0 ? d : n == null || (y = n.locale) === null || y === void 0 || (O = y.options) === null || O === void 0 ? void 0 : O.firstWeekContainsDate) !== null && u !== void 0 ? u : k.firstWeekContainsDate) !== null && l !== void 0 ? l : (f = k.locale) === null || f === void 0 || (s = f.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
2274
2284
  if (!(N >= 1 && N <= 7))
2275
2285
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
2276
- var K = oe((g = (C = (S = (F = n == null ? void 0 : n.weekStartsOn) !== null && F !== void 0 ? F : n == null || (M = n.locale) === null || M === void 0 || (V = M.options) === null || V === void 0 ? void 0 : V.weekStartsOn) !== null && S !== void 0 ? S : k.weekStartsOn) !== null && C !== void 0 ? C : (R = k.locale) === null || R === void 0 || (j = R.options) === null || j === void 0 ? void 0 : j.weekStartsOn) !== null && g !== void 0 ? g : 0);
2286
+ var K = oe((b = (C = (S = (F = n == null ? void 0 : n.weekStartsOn) !== null && F !== void 0 ? F : n == null || (M = n.locale) === null || M === void 0 || (V = M.options) === null || V === void 0 ? void 0 : V.weekStartsOn) !== null && S !== void 0 ? S : k.weekStartsOn) !== null && C !== void 0 ? C : (R = k.locale) === null || R === void 0 || (j = R.options) === null || j === void 0 ? void 0 : j.weekStartsOn) !== null && b !== void 0 ? b : 0);
2277
2287
  if (!(K >= 0 && K <= 6))
2278
2288
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2279
2289
  if (!P.localize)
@@ -2288,25 +2298,25 @@ function Xt(e, t, n) {
2288
2298
  weekStartsOn: K,
2289
2299
  locale: P,
2290
2300
  _originalDate: X
2291
- }, Y = te.match(Uc).map(function(b) {
2292
- var z = b[0];
2301
+ }, Y = te.match(Uc).map(function(g) {
2302
+ var z = g[0];
2293
2303
  if (z === "p" || z === "P") {
2294
2304
  var i = ia[z];
2295
- return i(b, P.formatLong);
2305
+ return i(g, P.formatLong);
2296
2306
  }
2297
- return b;
2298
- }).join("").match(Yc).map(function(b) {
2299
- if (b === "''")
2307
+ return g;
2308
+ }).join("").match(Yc).map(function(g) {
2309
+ if (g === "''")
2300
2310
  return "'";
2301
- var z = b[0];
2311
+ var z = g[0];
2302
2312
  if (z === "'")
2303
- return Fc(b);
2313
+ return Fc(g);
2304
2314
  var i = Xs[z];
2305
2315
  if (i)
2306
- return !(n != null && n.useAdditionalWeekYearTokens) && Si(b) && Zn(b, t, String(e)), !(n != null && n.useAdditionalDayOfYearTokens) && xi(b) && Zn(b, t, String(e)), i(Q, b, P.localize, le);
2316
+ return !(n != null && n.useAdditionalWeekYearTokens) && Si(g) && Zn(g, t, String(e)), !(n != null && n.useAdditionalDayOfYearTokens) && xi(g) && Zn(g, t, String(e)), i(Q, g, P.localize, le);
2307
2317
  if (z.match(Hc))
2308
2318
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + z + "`");
2309
- return b;
2319
+ return g;
2310
2320
  }).join("");
2311
2321
  return Y;
2312
2322
  }
@@ -2459,8 +2469,8 @@ var Zc = 10, Ai = /* @__PURE__ */ function() {
2459
2469
  Ci(n, e);
2460
2470
  var t = Ni(n);
2461
2471
  function n(r, a, o, l, u) {
2462
- var f;
2463
- return xo(this, n), f = t.call(this), f.value = r, f.validateValue = a, f.setValue = o, f.priority = l, u && (f.subPriority = u), f;
2472
+ var d;
2473
+ return xo(this, n), d = t.call(this), d.value = r, d.validateValue = a, d.setValue = o, d.priority = l, u && (d.subPriority = u), d;
2464
2474
  }
2465
2475
  return So(n, [{
2466
2476
  key: "validate",
@@ -2883,8 +2893,8 @@ var vf = /* @__PURE__ */ function(e) {
2883
2893
  value: function(a, o, l) {
2884
2894
  var u = a.getUTCFullYear();
2885
2895
  if (l.isTwoDigitYear) {
2886
- var f = Ei(l.year, u);
2887
- return a.setUTCFullYear(f, 0, 1), a.setUTCHours(0, 0, 0, 0), a;
2896
+ var d = Ei(l.year, u);
2897
+ return a.setUTCFullYear(d, 0, 1), a.setUTCHours(0, 0, 0, 0), a;
2888
2898
  }
2889
2899
  var y = !("era" in o) || o.era === 1 ? l.year : 1 - l.year;
2890
2900
  return a.setUTCFullYear(y, 0, 1), a.setUTCHours(0, 0, 0, 0), a;
@@ -2999,13 +3009,13 @@ var $f = /* @__PURE__ */ function(e) {
2999
3009
  }, {
3000
3010
  key: "set",
3001
3011
  value: function(a, o, l, u) {
3002
- var f = Po(a, u);
3012
+ var d = Po(a, u);
3003
3013
  if (l.isTwoDigitYear) {
3004
- var y = Ei(l.year, f);
3014
+ var y = Ei(l.year, d);
3005
3015
  return a.setUTCFullYear(y, 0, u.firstWeekContainsDate), a.setUTCHours(0, 0, 0, 0), Rt(a, u);
3006
3016
  }
3007
- var w = !("era" in o) || o.era === 1 ? l.year : 1 - l.year;
3008
- return a.setUTCFullYear(w, 0, u.firstWeekContainsDate), a.setUTCHours(0, 0, 0, 0), Rt(a, u);
3017
+ var O = !("era" in o) || o.era === 1 ? l.year : 1 - l.year;
3018
+ return a.setUTCFullYear(O, 0, u.firstWeekContainsDate), a.setUTCHours(0, 0, 0, 0), Rt(a, u);
3009
3019
  }
3010
3020
  }]), n;
3011
3021
  }(ge);
@@ -4041,8 +4051,8 @@ var Ad = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Id = [31, 29, 31, 30,
4041
4051
  }, {
4042
4052
  key: "validate",
4043
4053
  value: function(a, o) {
4044
- var l = a.getUTCFullYear(), u = Bi(l), f = a.getUTCMonth();
4045
- return u ? o >= 1 && o <= Id[f] : o >= 1 && o <= Ad[f];
4054
+ var l = a.getUTCFullYear(), u = Bi(l), d = a.getUTCMonth();
4055
+ return u ? o >= 1 && o <= Id[d] : o >= 1 && o <= Ad[d];
4046
4056
  }
4047
4057
  }, {
4048
4058
  key: "set",
@@ -4160,13 +4170,13 @@ var Fd = /* @__PURE__ */ function(e) {
4160
4170
  }]), n;
4161
4171
  }(ge);
4162
4172
  function Mo(e, t, n) {
4163
- var r, a, o, l, u, f, y, w;
4173
+ var r, a, o, l, u, d, y, O;
4164
4174
  J(2, arguments);
4165
- var d = wt(), s = oe((r = (a = (o = (l = n == null ? void 0 : n.weekStartsOn) !== null && l !== void 0 ? l : n == null || (u = n.locale) === null || u === void 0 || (f = u.options) === null || f === void 0 ? void 0 : f.weekStartsOn) !== null && o !== void 0 ? o : d.weekStartsOn) !== null && a !== void 0 ? a : (y = d.locale) === null || y === void 0 || (w = y.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && r !== void 0 ? r : 0);
4175
+ var f = wt(), s = oe((r = (a = (o = (l = n == null ? void 0 : n.weekStartsOn) !== null && l !== void 0 ? l : n == null || (u = n.locale) === null || u === void 0 || (d = u.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && o !== void 0 ? o : f.weekStartsOn) !== null && a !== void 0 ? a : (y = f.locale) === null || y === void 0 || (O = y.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && r !== void 0 ? r : 0);
4166
4176
  if (!(s >= 0 && s <= 6))
4167
4177
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
4168
- var g = ie(e), C = oe(t), S = g.getUTCDay(), F = C % 7, M = (F + 7) % 7, V = (M < s ? 7 : 0) + C - S;
4169
- return g.setUTCDate(g.getUTCDate() + V), g;
4178
+ var b = ie(e), C = oe(t), S = b.getUTCDay(), F = C % 7, M = (F + 7) % 7, V = (M < s ? 7 : 0) + C - S;
4179
+ return b.setUTCDate(b.getUTCDate() + V), b;
4170
4180
  }
4171
4181
  function Dn(e) {
4172
4182
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Dn = function(n) {
@@ -4390,18 +4400,18 @@ var rp = /* @__PURE__ */ function(e) {
4390
4400
  return Gd(n, [{
4391
4401
  key: "parse",
4392
4402
  value: function(a, o, l, u) {
4393
- var f = function(w) {
4394
- var d = Math.floor((w - 1) / 7) * 7;
4395
- return (w + u.weekStartsOn + 6) % 7 + d;
4403
+ var d = function(O) {
4404
+ var f = Math.floor((O - 1) / 7) * 7;
4405
+ return (O + u.weekStartsOn + 6) % 7 + f;
4396
4406
  };
4397
4407
  switch (o) {
4398
4408
  case "e":
4399
4409
  case "ee":
4400
- return Ee(Ne(o.length, a), f);
4410
+ return Ee(Ne(o.length, a), d);
4401
4411
  case "eo":
4402
4412
  return Ee(l.ordinalNumber(a, {
4403
4413
  unit: "day"
4404
- }), f);
4414
+ }), d);
4405
4415
  case "eee":
4406
4416
  return l.day(a, {
4407
4417
  width: "abbreviated",
@@ -4538,18 +4548,18 @@ var cp = /* @__PURE__ */ function(e) {
4538
4548
  return op(n, [{
4539
4549
  key: "parse",
4540
4550
  value: function(a, o, l, u) {
4541
- var f = function(w) {
4542
- var d = Math.floor((w - 1) / 7) * 7;
4543
- return (w + u.weekStartsOn + 6) % 7 + d;
4551
+ var d = function(O) {
4552
+ var f = Math.floor((O - 1) / 7) * 7;
4553
+ return (O + u.weekStartsOn + 6) % 7 + f;
4544
4554
  };
4545
4555
  switch (o) {
4546
4556
  case "c":
4547
4557
  case "cc":
4548
- return Ee(Ne(o.length, a), f);
4558
+ return Ee(Ne(o.length, a), d);
4549
4559
  case "co":
4550
4560
  return Ee(l.ordinalNumber(a, {
4551
4561
  unit: "day"
4552
- }), f);
4562
+ }), d);
4553
4563
  case "ccc":
4554
4564
  return l.day(a, {
4555
4565
  width: "abbreviated",
@@ -4607,8 +4617,8 @@ function fp(e, t) {
4607
4617
  J(2, arguments);
4608
4618
  var n = oe(t);
4609
4619
  n % 7 === 0 && (n = n - 7);
4610
- var r = 1, a = ie(e), o = a.getUTCDay(), l = n % 7, u = (l + 7) % 7, f = (u < r ? 7 : 0) + n - o;
4611
- return a.setUTCDate(a.getUTCDate() + f), a;
4620
+ var r = 1, a = ie(e), o = a.getUTCDay(), l = n % 7, u = (l + 7) % 7, d = (u < r ? 7 : 0) + n - o;
4621
+ return a.setUTCDate(a.getUTCDate() + d), a;
4612
4622
  }
4613
4623
  function Rn(e) {
4614
4624
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Rn = function(n) {
@@ -5839,8 +5849,8 @@ var Ay = /* @__PURE__ */ function(e) {
5839
5849
  return Sy(n, [{
5840
5850
  key: "parse",
5841
5851
  value: function(a, o) {
5842
- var l = function(f) {
5843
- return Math.floor(f * Math.pow(10, -o.length + 3));
5852
+ var l = function(d) {
5853
+ return Math.floor(d * Math.pow(10, -o.length + 3));
5844
5854
  };
5845
5855
  return Ee(Ne(o.length, a), l);
5846
5856
  }
@@ -6338,12 +6348,12 @@ function Jl(e, t) {
6338
6348
  }
6339
6349
  var fm = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, dm = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, pm = /^'([^]*?)'?$/, ym = /''/g, mm = /\S/, vm = /[a-zA-Z]/;
6340
6350
  function _o(e, t, n, r) {
6341
- var a, o, l, u, f, y, w, d, s, g, C, S, F, M, V, R, j, te;
6351
+ var a, o, l, u, d, y, O, f, s, b, C, S, F, M, V, R, j, te;
6342
6352
  J(3, arguments);
6343
6353
  var k = String(e), P = String(t), N = wt(), K = (a = (o = r == null ? void 0 : r.locale) !== null && o !== void 0 ? o : N.locale) !== null && a !== void 0 ? a : Ri;
6344
6354
  if (!K.match)
6345
6355
  throw new RangeError("locale must contain match property");
6346
- var X = oe((l = (u = (f = (y = r == null ? void 0 : r.firstWeekContainsDate) !== null && y !== void 0 ? y : r == null || (w = r.locale) === null || w === void 0 || (d = w.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && f !== void 0 ? f : N.firstWeekContainsDate) !== null && u !== void 0 ? u : (s = N.locale) === null || s === void 0 || (g = s.options) === null || g === void 0 ? void 0 : g.firstWeekContainsDate) !== null && l !== void 0 ? l : 1);
6356
+ var X = oe((l = (u = (d = (y = r == null ? void 0 : r.firstWeekContainsDate) !== null && y !== void 0 ? y : r == null || (O = r.locale) === null || O === void 0 || (f = O.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && d !== void 0 ? d : N.firstWeekContainsDate) !== null && u !== void 0 ? u : (s = N.locale) === null || s === void 0 || (b = s.options) === null || b === void 0 ? void 0 : b.firstWeekContainsDate) !== null && l !== void 0 ? l : 1);
6347
6357
  if (!(X >= 1 && X <= 7))
6348
6358
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
6349
6359
  var L = oe((C = (S = (F = (M = r == null ? void 0 : r.weekStartsOn) !== null && M !== void 0 ? M : r == null || (V = r.locale) === null || V === void 0 || (R = V.options) === null || R === void 0 ? void 0 : R.weekStartsOn) !== null && F !== void 0 ? F : N.weekStartsOn) !== null && S !== void 0 ? S : (j = N.locale) === null || j === void 0 || (te = j.options) === null || te === void 0 ? void 0 : te.weekStartsOn) !== null && C !== void 0 ? C : 0);
@@ -6362,7 +6372,7 @@ function _o(e, t, n, r) {
6362
6372
  return Re(he, K.formatLong);
6363
6373
  }
6364
6374
  return he;
6365
- }).join("").match(fm), b = [], z = Gl(Y), i;
6375
+ }).join("").match(fm), g = [], z = Gl(Y), i;
6366
6376
  try {
6367
6377
  var v = function() {
6368
6378
  var ue = i.value;
@@ -6371,14 +6381,14 @@ function _o(e, t, n, r) {
6371
6381
  if (tt) {
6372
6382
  var se = tt.incompatibleTokens;
6373
6383
  if (Array.isArray(se)) {
6374
- var fe = b.find(function(be) {
6384
+ var de = g.find(function(be) {
6375
6385
  return se.includes(be.token) || be.token === Re;
6376
6386
  });
6377
- if (fe)
6378
- throw new RangeError("The format string mustn't contain `".concat(fe.fullToken, "` and `").concat(ue, "` at the same time"));
6379
- } else if (tt.incompatibleTokens === "*" && b.length > 0)
6387
+ if (de)
6388
+ throw new RangeError("The format string mustn't contain `".concat(de.fullToken, "` and `").concat(ue, "` at the same time"));
6389
+ } else if (tt.incompatibleTokens === "*" && g.length > 0)
6380
6390
  throw new RangeError("The format string mustn't contain `".concat(ue, "` and any other token at the same time"));
6381
- b.push({
6391
+ g.push({
6382
6392
  token: Re,
6383
6393
  fullToken: ue
6384
6394
  });
@@ -6428,9 +6438,9 @@ function _o(e, t, n, r) {
6428
6438
  }), U = ie(n);
6429
6439
  if (isNaN(U.getTime()))
6430
6440
  return new Date(NaN);
6431
- var h = $i(U, Qn(U)), G = {}, ce = Gl(D), _;
6441
+ var h = $i(U, Qn(U)), G = {}, fe = Gl(D), _;
6432
6442
  try {
6433
- for (ce.s(); !(_ = ce.n()).done; ) {
6443
+ for (fe.s(); !(_ = fe.n()).done; ) {
6434
6444
  var B = _.value;
6435
6445
  if (!B.validate(h, Q))
6436
6446
  return new Date(NaN);
@@ -6438,9 +6448,9 @@ function _o(e, t, n, r) {
6438
6448
  Array.isArray(xe) ? (h = xe[0], Wc(G, xe[1])) : h = xe;
6439
6449
  }
6440
6450
  } catch (he) {
6441
- ce.e(he);
6451
+ fe.e(he);
6442
6452
  } finally {
6443
- ce.f();
6453
+ fe.f();
6444
6454
  }
6445
6455
  return h;
6446
6456
  }
@@ -6467,17 +6477,17 @@ function bm(e, t) {
6467
6477
  }
6468
6478
  if (!o || isNaN(o.getTime()))
6469
6479
  return new Date(NaN);
6470
- var u = o.getTime(), f = 0, y;
6471
- if (a.time && (f = Tm(a.time), isNaN(f)))
6480
+ var u = o.getTime(), d = 0, y;
6481
+ if (a.time && (d = Tm(a.time), isNaN(d)))
6472
6482
  return new Date(NaN);
6473
6483
  if (a.timezone) {
6474
6484
  if (y = Dm(a.timezone), isNaN(y))
6475
6485
  return new Date(NaN);
6476
6486
  } else {
6477
- var w = new Date(u + f), d = new Date(0);
6478
- return d.setFullYear(w.getUTCFullYear(), w.getUTCMonth(), w.getUTCDate()), d.setHours(w.getUTCHours(), w.getUTCMinutes(), w.getUTCSeconds(), w.getUTCMilliseconds()), d;
6487
+ var O = new Date(u + d), f = new Date(0);
6488
+ return f.setFullYear(O.getUTCFullYear(), O.getUTCMonth(), O.getUTCDate()), f.setHours(O.getUTCHours(), O.getUTCMinutes(), O.getUTCSeconds(), O.getUTCMilliseconds()), f;
6479
6489
  }
6480
- return new Date(u + f + y);
6490
+ return new Date(u + d + y);
6481
6491
  }
6482
6492
  var an = {
6483
6493
  dateTimeDelimiter: /[T ]/,
@@ -6513,9 +6523,9 @@ function Pm(e, t) {
6513
6523
  var n = e.match(gm);
6514
6524
  if (!n)
6515
6525
  return new Date(NaN);
6516
- var r = !!n[4], a = jt(n[1]), o = jt(n[2]) - 1, l = jt(n[3]), u = jt(n[4]), f = jt(n[5]) - 1;
6526
+ var r = !!n[4], a = jt(n[1]), o = jt(n[2]) - 1, l = jt(n[3]), u = jt(n[4]), d = jt(n[5]) - 1;
6517
6527
  if (r)
6518
- return Cm(t, u, f) ? xm(t, u, f) : new Date(NaN);
6528
+ return Cm(t, u, d) ? xm(t, u, d) : new Date(NaN);
6519
6529
  var y = new Date(0);
6520
6530
  return !Rm(t, o, l) || !Mm(t, a) ? new Date(NaN) : (y.setUTCFullYear(t, o, Math.max(a, l)), y);
6521
6531
  }
@@ -6626,7 +6636,7 @@ function qn(e) {
6626
6636
  function Im(e, t) {
6627
6637
  if (J(2, arguments), !t || qn(t) !== "object")
6628
6638
  return new Date(NaN);
6629
- var n = t.years ? oe(t.years) : 0, r = t.months ? oe(t.months) : 0, a = t.weeks ? oe(t.weeks) : 0, o = t.days ? oe(t.days) : 0, l = t.hours ? oe(t.hours) : 0, u = t.minutes ? oe(t.minutes) : 0, f = t.seconds ? oe(t.seconds) : 0, y = Et(e, r + n * 12), w = _m(y, o + a * 7), d = u + l * 60, s = f + d * 60, g = s * 1e3, C = new Date(w.getTime() - g);
6639
+ var n = t.years ? oe(t.years) : 0, r = t.months ? oe(t.months) : 0, a = t.weeks ? oe(t.weeks) : 0, o = t.days ? oe(t.days) : 0, l = t.hours ? oe(t.hours) : 0, u = t.minutes ? oe(t.minutes) : 0, d = t.seconds ? oe(t.seconds) : 0, y = Et(e, r + n * 12), O = _m(y, o + a * 7), f = u + l * 60, s = d + f * 60, b = s * 1e3, C = new Date(O.getTime() - b);
6630
6640
  return C;
6631
6641
  }
6632
6642
  function Em(e, t) {
@@ -6653,7 +6663,7 @@ const Ct = (e, t) => {
6653
6663
  Hm
6654
6664
  ];
6655
6665
  function Wm(e, t) {
6656
- return m(), O("svg", Ym, Fm);
6666
+ return m(), w("svg", Ym, Fm);
6657
6667
  }
6658
6668
  const Br = /* @__PURE__ */ Ct(Bm, [["render", Wm]]), jm = {}, zm = {
6659
6669
  version: "1.1",
@@ -6667,7 +6677,7 @@ const Br = /* @__PURE__ */ Ct(Bm, [["render", Wm]]), jm = {}, zm = {
6667
6677
  Km
6668
6678
  ];
6669
6679
  function Qm(e, t) {
6670
- return m(), O("svg", zm, Xm);
6680
+ return m(), w("svg", zm, Xm);
6671
6681
  }
6672
6682
  const Zm = /* @__PURE__ */ Ct(jm, [["render", Qm]]), Gm = {}, Jm = {
6673
6683
  version: "1.1",
@@ -6680,7 +6690,7 @@ const Zm = /* @__PURE__ */ Ct(jm, [["render", Qm]]), Gm = {}, Jm = {
6680
6690
  ev
6681
6691
  ];
6682
6692
  function nv(e, t) {
6683
- return m(), O("svg", Jm, tv);
6693
+ return m(), w("svg", Jm, tv);
6684
6694
  }
6685
6695
  const ei = /* @__PURE__ */ Ct(Gm, [["render", nv]]), rv = {}, av = {
6686
6696
  version: "1.1",
@@ -6693,7 +6703,7 @@ const ei = /* @__PURE__ */ Ct(Gm, [["render", nv]]), rv = {}, av = {
6693
6703
  ov
6694
6704
  ];
6695
6705
  function iv(e, t) {
6696
- return m(), O("svg", av, lv);
6706
+ return m(), w("svg", av, lv);
6697
6707
  }
6698
6708
  const ti = /* @__PURE__ */ Ct(rv, [["render", iv]]), uv = {}, sv = {
6699
6709
  version: "1.1",
@@ -6707,7 +6717,7 @@ const ti = /* @__PURE__ */ Ct(rv, [["render", iv]]), uv = {}, sv = {
6707
6717
  fv
6708
6718
  ];
6709
6719
  function pv(e, t) {
6710
- return m(), O("svg", sv, dv);
6720
+ return m(), w("svg", sv, dv);
6711
6721
  }
6712
6722
  const Hi = /* @__PURE__ */ Ct(uv, [["render", pv]]), yv = {}, mv = {
6713
6723
  version: "1.1",
@@ -6720,7 +6730,7 @@ const Hi = /* @__PURE__ */ Ct(uv, [["render", pv]]), yv = {}, mv = {
6720
6730
  vv
6721
6731
  ];
6722
6732
  function _v(e, t) {
6723
- return m(), O("svg", mv, hv);
6733
+ return m(), w("svg", mv, hv);
6724
6734
  }
6725
6735
  const Fi = /* @__PURE__ */ Ct(yv, [["render", _v]]), bv = {}, gv = {
6726
6736
  version: "1.1",
@@ -6733,7 +6743,7 @@ const Fi = /* @__PURE__ */ Ct(yv, [["render", _v]]), bv = {}, gv = {
6733
6743
  wv
6734
6744
  ];
6735
6745
  function $v(e, t) {
6736
- return m(), O("svg", gv, Ov);
6746
+ return m(), w("svg", gv, Ov);
6737
6747
  }
6738
6748
  const Wi = /* @__PURE__ */ Ct(bv, [["render", $v]]), ni = (e, t) => {
6739
6749
  const n = _o(e, t.slice(0, e.length), new Date());
@@ -6769,7 +6779,7 @@ const Wi = /* @__PURE__ */ Ct(bv, [["render", $v]]), ni = (e, t) => {
6769
6779
  }, at = (e, t, n, r) => {
6770
6780
  let a = e ? I(e) : I();
6771
6781
  return (t || t === 0) && (a = Ui(a, +t)), (n || n === 0) && (a = Li(a, +n)), (r || r === 0) && (a = Vi(a, +r)), Co(a, 0);
6772
- }, Fe = (e, t) => !e || !t ? !1 : Do(ft(e), ft(t)), Se = (e, t) => !e || !t ? !1 : Mi(ft(e), ft(t)), Xe = (e, t) => !e || !t ? !1 : To(ft(e), ft(t)), ji = (e, t, n) => e && e[0] && e[1] ? Xe(n, e[0]) && Fe(n, e[1]) : e && e[0] && t ? Xe(n, e[0]) && Fe(n, t) || Fe(n, e[0]) && Xe(n, t) : !1, zt = Gt({
6782
+ }, We = (e, t) => !e || !t ? !1 : Do(ft(e), ft(t)), Se = (e, t) => !e || !t ? !1 : Mi(ft(e), ft(t)), Xe = (e, t) => !e || !t ? !1 : To(ft(e), ft(t)), ji = (e, t, n) => e && e[0] && e[1] ? Xe(n, e[0]) && We(n, e[1]) : e && e[0] && t ? Xe(n, e[0]) && We(n, t) || We(n, e[0]) && Xe(n, t) : !1, zt = Gt({
6773
6783
  menuFocused: !1,
6774
6784
  shiftKeyInMenu: !1
6775
6785
  }), zi = () => {
@@ -6915,7 +6925,7 @@ function Io(e, t, n) {
6915
6925
  }
6916
6926
  if (Bv(e)) {
6917
6927
  t = new Date(t || Date.now());
6918
- var u = n ? t : Iv(t), f = bo(u, e), y = n ? f : Ev(t, f, e);
6928
+ var u = n ? t : Iv(t), d = bo(u, e), y = n ? d : Ev(t, d, e);
6919
6929
  return -y;
6920
6930
  }
6921
6931
  return NaN;
@@ -7004,19 +7014,19 @@ function go(e, t) {
7004
7014
  return new Date(e);
7005
7015
  if (!(typeof e == "string" || Object.prototype.toString.call(e) === "[object String]"))
7006
7016
  return new Date(NaN);
7007
- var a = Uv(e), o = Lv(a.date, r), l = o.year, u = o.restDateString, f = Vv(u, l);
7008
- if (isNaN(f))
7017
+ var a = Uv(e), o = Lv(a.date, r), l = o.year, u = o.restDateString, d = Vv(u, l);
7018
+ if (isNaN(d))
7009
7019
  return new Date(NaN);
7010
- if (f) {
7011
- var y = f.getTime(), w = 0, d;
7012
- if (a.time && (w = Hv(a.time), isNaN(w)))
7020
+ if (d) {
7021
+ var y = d.getTime(), O = 0, f;
7022
+ if (a.time && (O = Hv(a.time), isNaN(O)))
7013
7023
  return new Date(NaN);
7014
7024
  if (a.timeZone || n.timeZone) {
7015
- if (d = Io(a.timeZone || n.timeZone, new Date(y + w)), isNaN(d))
7025
+ if (f = Io(a.timeZone || n.timeZone, new Date(y + O)), isNaN(f))
7016
7026
  return new Date(NaN);
7017
7027
  } else
7018
- d = ri(new Date(y + w)), d = ri(new Date(y + w + d));
7019
- return new Date(y + w + d);
7028
+ f = ri(new Date(y + O)), f = ri(new Date(y + O + f));
7029
+ return new Date(y + O + f);
7020
7030
  } else
7021
7031
  return new Date(NaN);
7022
7032
  }
@@ -7070,8 +7080,8 @@ function Vv(e, t) {
7070
7080
  return o = parseInt(n[1], 10) - 1, ci(t, o) ? ui(t, o) : new Date(NaN);
7071
7081
  if (n = Ke.WwwD.exec(e), n) {
7072
7082
  o = parseInt(n[1], 10) - 1;
7073
- var f = parseInt(n[2], 10) - 1;
7074
- return ci(t, o, f) ? ui(t, o, f) : new Date(NaN);
7083
+ var d = parseInt(n[2], 10) - 1;
7084
+ return ci(t, o, d) ? ui(t, o, d) : new Date(NaN);
7075
7085
  }
7076
7086
  return null;
7077
7087
  }
@@ -7207,13 +7217,13 @@ const Zv = (e, t = 3) => {
7207
7217
  text: n.format(r),
7208
7218
  value: a
7209
7219
  }));
7210
- }, th = (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], Ve = (e) => {
7220
+ }, th = (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], He = (e) => {
7211
7221
  const t = c(e);
7212
7222
  return t != null && t.$el ? t == null ? void 0 : t.$el : t;
7213
7223
  }, nh = (e) => Object.assign({ type: "dot" }, e), Xi = (e) => Array.isArray(e) ? !!e[0] && !!e[1] : !1, Ir = {
7214
7224
  prop: (e) => `"${e}" prop must be enabled!`,
7215
7225
  dateArr: (e) => `You need to use array as "model-value" binding in order to support "${e}"`
7216
- }, He = (e) => e, fi = (e) => e === 0 ? e : !e || isNaN(+e) ? null : +e, di = (e) => Object.assign(
7226
+ }, Fe = (e) => e, fi = (e) => e === 0 ? e : !e || isNaN(+e) ? null : +e, di = (e) => Object.assign(
7217
7227
  {
7218
7228
  menuAppear: "dp-menu-appear",
7219
7229
  open: "dp-slide-down",
@@ -7274,20 +7284,20 @@ const Zv = (e, t = 3) => {
7274
7284
  return e.format(i);
7275
7285
  const T = v || o(), D = e.formatLocale ? { locale: e.formatLocale } : void 0;
7276
7286
  return Array.isArray(i) ? `${Xt(i[0], T, D)} ${e.modelAuto && !i[1] ? "" : n.value.textInputOptions.rangeSeparator || "-"} ${i[1] ? Xt(i[1], T, D) : ""}` : Xt(i, T, D);
7277
- }, u = (i) => e.timezone ? Xv(i, e.timezone) : i, f = (i) => e.timezone ? Qv(i, e.timezone) : i, y = H(() => (i) => {
7287
+ }, u = (i) => e.timezone ? Xv(i, e.timezone) : i, d = (i) => e.timezone ? Qv(i, e.timezone) : i, y = H(() => (i) => {
7278
7288
  var v;
7279
7289
  return (v = e.hideNavigation) == null ? void 0 : v.includes(i);
7280
- }), w = (i) => {
7281
- const v = e.maxDate ? Xe(u(i), u(I(e.maxDate))) : !1, T = e.minDate ? Fe(u(i), u(I(e.minDate))) : !1, D = M(i, e.disabledDates), U = n.value.filters.months.map((B) => +B).includes(Te(i)), h = e.disabledWeekDays.length ? e.disabledWeekDays.some((B) => +B === jc(i)) : !1, G = e.allowedDates.length ? !e.allowedDates.some((B) => Se(u(I(B)), u(i))) : !1, ce = De(i), _ = ce < +e.yearRange[0] || ce > +e.yearRange[1];
7290
+ }), O = (i) => {
7291
+ const v = e.maxDate ? Xe(u(i), u(I(e.maxDate))) : !1, T = e.minDate ? We(u(i), u(I(e.minDate))) : !1, D = M(i, e.disabledDates), U = n.value.filters.months.map((B) => +B).includes(Te(i)), h = e.disabledWeekDays.length ? e.disabledWeekDays.some((B) => +B === jc(i)) : !1, G = e.allowedDates.length ? !e.allowedDates.some((B) => Se(u(I(B)), u(i))) : !1, fe = De(i), _ = fe < +e.yearRange[0] || fe > +e.yearRange[1];
7282
7292
  return !(v || T || D || U || _ || h || G);
7283
- }, d = (i) => {
7293
+ }, f = (i) => {
7284
7294
  const v = {
7285
7295
  hours: pt(I()),
7286
7296
  minutes: yt(I()),
7287
7297
  seconds: Yt(I())
7288
7298
  };
7289
7299
  return Object.assign(v, i);
7290
- }, s = () => e.range ? e.startTime && Array.isArray(e.startTime) ? [d(e.startTime[0]), d(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? d(e.startTime) : null, g = (i) => !w(i), C = (i) => Array.isArray(i) ? Kt(i[0]) && (i[1] ? Kt(i[1]) : !0) : i ? Kt(i) : !1, S = (i) => i instanceof Date ? i : bm(i), F = (i) => {
7300
+ }, s = () => e.range ? e.startTime && Array.isArray(e.startTime) ? [f(e.startTime[0]), f(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? f(e.startTime) : null, b = (i) => !O(i), C = (i) => Array.isArray(i) ? Kt(i[0]) && (i[1] ? Kt(i[1]) : !0) : i ? Kt(i) : !1, S = (i) => i instanceof Date ? i : bm(i), F = (i) => {
7291
7301
  const v = la(u(i), { weekStartsOn: +e.weekStart }), T = Ls(u(i), { weekStartsOn: +e.weekStart });
7292
7302
  return [v, T];
7293
7303
  }, M = (i, v) => Array.isArray(v) ? v.some((T) => Se(u(I(T)), u(i))) : v(i), V = (i, v, T) => {
@@ -7316,7 +7326,7 @@ const Zv = (e, t = 3) => {
7316
7326
  if (!i || k())
7317
7327
  return !0;
7318
7328
  const T = !e.minDate && !e.maxDate ? P(i) : i;
7319
- return (e.maxTime || e.maxDate) && (v = N(He(T))), (e.minTime || e.minDate) && (v = K(He(T), v)), v;
7329
+ return (e.maxTime || e.maxDate) && (v = N(Fe(T))), (e.minTime || e.minDate) && (v = K(Fe(T), v)), v;
7320
7330
  }, L = (i, v) => {
7321
7331
  const T = I(JSON.parse(JSON.stringify(i))), D = [];
7322
7332
  for (let U = 0; U < 7; U++) {
@@ -7330,37 +7340,37 @@ const Zv = (e, t = 3) => {
7330
7340
  }
7331
7341
  return D;
7332
7342
  }, Q = (i, v) => {
7333
- const T = [], D = I(u(new Date(v, i))), U = I(u(new Date(v, i + 1, 0))), h = la(D, { weekStartsOn: e.weekStart }), G = (ce) => {
7334
- const _ = L(ce, i);
7343
+ const T = [], D = I(u(new Date(v, i))), U = I(u(new Date(v, i + 1, 0))), h = la(D, { weekStartsOn: e.weekStart }), G = (fe) => {
7344
+ const _ = L(fe, i);
7335
7345
  if (T.push({ days: _ }), !T[T.length - 1].days.some(
7336
7346
  (B) => Se(ft(B.value), ft(U))
7337
7347
  )) {
7338
- const B = gt(ce, 7);
7348
+ const B = gt(fe, 7);
7339
7349
  G(B);
7340
7350
  }
7341
7351
  };
7342
7352
  if (G(h), e.sixWeeks && T.length < 6) {
7343
- const ce = 6 - T.length;
7344
- for (let _ = 1; _ <= ce; _++) {
7353
+ const fe = 6 - T.length;
7354
+ for (let _ = 1; _ <= fe; _++) {
7345
7355
  const B = T[T.length - 1], xe = B.days[B.days.length - 1], he = L(gt(xe.value, 1), Te(D));
7346
7356
  T.push({ days: he });
7347
7357
  }
7348
7358
  }
7349
7359
  return T;
7350
- }, le = (i, v, T) => [qe(I(i), { date: 1 }), qe(I(), { month: v, year: T, date: 1 })], Y = (i, v) => Fe(...le(e.minDate, i, v)) || Se(...le(e.minDate, i, v)), b = (i, v) => Xe(...le(e.maxDate, i, v)) || Se(...le(e.maxDate, i, v)), z = (i, v, T) => {
7360
+ }, le = (i, v, T) => [qe(I(i), { date: 1 }), qe(I(), { month: v, year: T, date: 1 })], Y = (i, v) => We(...le(e.minDate, i, v)) || Se(...le(e.minDate, i, v)), g = (i, v) => Xe(...le(e.maxDate, i, v)) || Se(...le(e.maxDate, i, v)), z = (i, v, T) => {
7351
7361
  let D = !1;
7352
- return e.maxDate && T && b(i, v) && (D = !0), e.minDate && !T && Y(i, v) && (D = !0), D;
7362
+ return e.maxDate && T && g(i, v) && (D = !0), e.minDate && !T && Y(i, v) && (D = !0), D;
7353
7363
  };
7354
7364
  return {
7355
7365
  checkPartialRangeValue: t,
7356
7366
  checkRangeEnabled: r,
7357
7367
  getZonedDate: u,
7358
- getZonedToUtc: f,
7368
+ getZonedToUtc: d,
7359
7369
  formatDate: l,
7360
7370
  getDefaultPattern: o,
7361
- validateDate: w,
7371
+ validateDate: O,
7362
7372
  getDefaultStartTime: s,
7363
- isDisabled: g,
7373
+ isDisabled: b,
7364
7374
  isValidDate: C,
7365
7375
  sanitizeDate: S,
7366
7376
  getWeekFromDate: F,
@@ -7370,9 +7380,9 @@ const Zv = (e, t = 3) => {
7370
7380
  getCalendarDays: Q,
7371
7381
  validateMonthYearInRange: (i, v, T, D) => {
7372
7382
  let U = !1;
7373
- return D ? e.minDate && e.maxDate ? U = z(i, v, T) : (e.minDate && Y(i, v) || e.maxDate && b(i, v)) && (U = !0) : U = !0, U;
7383
+ return D ? e.minDate && e.maxDate ? U = z(i, v, T) : (e.minDate && Y(i, v) || e.maxDate && g(i, v)) && (U = !0) : U = !0, U;
7374
7384
  },
7375
- validateMaxDate: b,
7385
+ validateMaxDate: g,
7376
7386
  validateMinDate: Y,
7377
7387
  defaults: n,
7378
7388
  hideNavigationButtons: y
@@ -7388,21 +7398,21 @@ const Zv = (e, t = 3) => {
7388
7398
  1: []
7389
7399
  },
7390
7400
  monthPicker: []
7391
- }), Jr = W(null), on = W(!1), ea = W(!1), ta = W(!1), na = W(!1), ze = W(0), Ue = W(0), Ot = () => {
7392
- const e = H(() => on.value ? [...Pe.selectionGrid, Pe.actionRow].filter((d) => d.length) : ea.value ? [
7401
+ }), Jr = W(null), on = W(!1), ea = W(!1), ta = W(!1), na = W(!1), ze = W(0), Le = W(0), Ot = () => {
7402
+ const e = H(() => on.value ? [...Pe.selectionGrid, Pe.actionRow].filter((f) => f.length) : ea.value ? [
7393
7403
  ...Pe.timePicker[0],
7394
7404
  ...Pe.timePicker[1],
7395
7405
  na.value ? [] : [Jr.value],
7396
7406
  Pe.actionRow
7397
- ].filter((d) => d.length) : ta.value ? [...Pe.monthPicker, Pe.actionRow] : [Pe.monthYear, ...Pe.calendar, Pe.time, Pe.actionRow].filter((d) => d.length)), t = (d) => {
7398
- ze.value = d ? ze.value + 1 : ze.value - 1;
7407
+ ].filter((f) => f.length) : ta.value ? [...Pe.monthPicker, Pe.actionRow] : [Pe.monthYear, ...Pe.calendar, Pe.time, Pe.actionRow].filter((f) => f.length)), t = (f) => {
7408
+ ze.value = f ? ze.value + 1 : ze.value - 1;
7399
7409
  let s = null;
7400
- e.value[Ue.value] && (s = e.value[Ue.value][ze.value]), s || (ze.value = d ? ze.value - 1 : ze.value + 1);
7401
- }, n = (d) => {
7402
- Ue.value === 0 && !d || Ue.value === e.value.length && d || (Ue.value = d ? Ue.value + 1 : Ue.value - 1, e.value[Ue.value] ? e.value[Ue.value] && !e.value[Ue.value][ze.value] && ze.value !== 0 && (ze.value = e.value[Ue.value].length - 1) : Ue.value = d ? Ue.value - 1 : Ue.value + 1);
7403
- }, r = (d) => {
7410
+ e.value[Le.value] && (s = e.value[Le.value][ze.value]), s || (ze.value = f ? ze.value - 1 : ze.value + 1);
7411
+ }, n = (f) => {
7412
+ Le.value === 0 && !f || Le.value === e.value.length && f || (Le.value = f ? Le.value + 1 : Le.value - 1, e.value[Le.value] ? e.value[Le.value] && !e.value[Le.value][ze.value] && ze.value !== 0 && (ze.value = e.value[Le.value].length - 1) : Le.value = f ? Le.value - 1 : Le.value + 1);
7413
+ }, r = (f) => {
7404
7414
  let s = null;
7405
- e.value[Ue.value] && (s = e.value[Ue.value][ze.value]), s ? s.focus({ preventScroll: !on.value }) : ze.value = d ? ze.value - 1 : ze.value + 1;
7415
+ e.value[Le.value] && (s = e.value[Le.value][ze.value]), s ? s.focus({ preventScroll: !on.value }) : ze.value = f ? ze.value - 1 : ze.value + 1;
7406
7416
  }, a = () => {
7407
7417
  t(!0), r(!0);
7408
7418
  }, o = () => {
@@ -7411,37 +7421,37 @@ const Zv = (e, t = 3) => {
7411
7421
  n(!1), r(!0);
7412
7422
  }, u = () => {
7413
7423
  n(!0), r(!0);
7414
- }, f = (d, s) => {
7415
- Pe[s] = d;
7416
- }, y = (d, s) => {
7417
- Pe[s] = d;
7418
- }, w = () => {
7419
- ze.value = 0, Ue.value = 0;
7424
+ }, d = (f, s) => {
7425
+ Pe[s] = f;
7426
+ }, y = (f, s) => {
7427
+ Pe[s] = f;
7428
+ }, O = () => {
7429
+ ze.value = 0, Le.value = 0;
7420
7430
  };
7421
7431
  return {
7422
- buildMatrix: f,
7432
+ buildMatrix: d,
7423
7433
  buildMultiLevelMatrix: y,
7424
- setTimePickerBackRef: (d) => {
7425
- Jr.value = d;
7434
+ setTimePickerBackRef: (f) => {
7435
+ Jr.value = f;
7426
7436
  },
7427
- setSelectionGrid: (d) => {
7428
- on.value = d, w(), d || (Pe.selectionGrid = []);
7437
+ setSelectionGrid: (f) => {
7438
+ on.value = f, O(), f || (Pe.selectionGrid = []);
7429
7439
  },
7430
- setTimePicker: (d, s = !1) => {
7431
- ea.value = d, na.value = s, w(), d || (Pe.timePicker[0] = [], Pe.timePicker[1] = []);
7440
+ setTimePicker: (f, s = !1) => {
7441
+ ea.value = f, na.value = s, O(), f || (Pe.timePicker[0] = [], Pe.timePicker[1] = []);
7432
7442
  },
7433
- setTimePickerElements: (d, s = 0) => {
7434
- Pe.timePicker[s] = d;
7443
+ setTimePickerElements: (f, s = 0) => {
7444
+ Pe.timePicker[s] = f;
7435
7445
  },
7436
7446
  arrowRight: a,
7437
7447
  arrowLeft: o,
7438
7448
  arrowUp: l,
7439
7449
  arrowDown: u,
7440
7450
  clearArrowNav: () => {
7441
- Pe.monthYear = [], Pe.calendar = [], Pe.time = [], Pe.actionRow = [], Pe.selectionGrid = [], Pe.timePicker[0] = [], Pe.timePicker[1] = [], on.value = !1, ea.value = !1, na.value = !1, ta.value = !1, w(), Jr.value = null;
7451
+ Pe.monthYear = [], Pe.calendar = [], Pe.time = [], Pe.actionRow = [], Pe.selectionGrid = [], Pe.timePicker[0] = [], Pe.timePicker[1] = [], on.value = !1, ea.value = !1, na.value = !1, ta.value = !1, O(), Jr.value = null;
7442
7452
  },
7443
- setMonthPicker: (d) => {
7444
- ta.value = d, w();
7453
+ setMonthPicker: (f) => {
7454
+ ta.value = f, O();
7445
7455
  },
7446
7456
  refSets: Pe
7447
7457
  };
@@ -7450,16 +7460,16 @@ const Zv = (e, t = 3) => {
7450
7460
  getDefaultStartTime: o,
7451
7461
  isDisabled: l,
7452
7462
  sanitizeDate: u,
7453
- getWeekFromDate: f,
7463
+ getWeekFromDate: d,
7454
7464
  setDateMonthOrYear: y,
7455
- validateMonthYearInRange: w,
7456
- defaults: d
7465
+ validateMonthYearInRange: O,
7466
+ defaults: f
7457
7467
  } = rt(e), s = H({
7458
7468
  get: () => e.internalModelValue,
7459
7469
  set: (p) => {
7460
7470
  !e.readonly && !e.disabled && t("update:internal-model-value", p);
7461
7471
  }
7462
- }), g = W([]);
7472
+ }), b = W([]);
7463
7473
  ct(s, () => {
7464
7474
  e.multiCalendars || te();
7465
7475
  });
@@ -7478,7 +7488,7 @@ const Zv = (e, t = 3) => {
7478
7488
  S[p] = A;
7479
7489
  };
7480
7490
  et(() => {
7481
- s.value || (e.startDate && (R(0, Te(I(e.startDate)), De(I(e.startDate))), d.value.multiCalendars && Lt(0)), d.value.startTime && b()), te(!0);
7491
+ s.value || (e.startDate && (R(0, Te(I(e.startDate)), De(I(e.startDate))), f.value.multiCalendars && Lt(0)), f.value.startTime && g()), te(!0);
7482
7492
  });
7483
7493
  const te = (p = !1) => {
7484
7494
  if (s.value)
@@ -7489,11 +7499,11 @@ const Zv = (e, t = 3) => {
7489
7499
  return Q();
7490
7500
  if (e.yearPicker && !e.range)
7491
7501
  return le();
7492
- if (d.value.multiCalendars && p && !e.startDate)
7502
+ if (f.value.multiCalendars && p && !e.startDate)
7493
7503
  return k(I(), p);
7494
7504
  }, k = (p, A = !1) => {
7495
- if ((!d.value.multiCalendars || !e.multiStatic || A) && R(0, Te(p), De(p)), d.value.multiCalendars)
7496
- for (let ee = 1; ee < d.value.multiCalendars; ee++) {
7505
+ if ((!f.value.multiCalendars || !e.multiStatic || A) && R(0, Te(p), De(p)), f.value.multiCalendars)
7506
+ for (let ee = 1; ee < f.value.multiCalendars; ee++) {
7497
7507
  const re = qe(I(), { month: F.value(ee - 1), year: M.value(ee - 1) }), $e = gi(re, { months: 1 });
7498
7508
  C.value[ee] = { month: Te($e), year: De($e) };
7499
7509
  }
@@ -7515,9 +7525,9 @@ const Zv = (e, t = 3) => {
7515
7525
  }
7516
7526
  }, X = (p) => {
7517
7527
  const A = s.value;
7518
- K(A, p), d.value.multiCalendars && e.multiCalendarsSolo && i();
7528
+ K(A, p), f.value.multiCalendars && e.multiCalendarsSolo && i();
7519
7529
  }, L = () => {
7520
- if (b(), !e.range)
7530
+ if (g(), !e.range)
7521
7531
  s.value = at(I(), S.hours, S.minutes, Y());
7522
7532
  else {
7523
7533
  const p = S.hours, A = S.minutes;
@@ -7530,7 +7540,7 @@ const Zv = (e, t = 3) => {
7530
7540
  s.value = y(I(), F.value(0), M.value(0));
7531
7541
  }, le = () => {
7532
7542
  s.value = I();
7533
- }, Y = (p = !0) => e.enableSeconds ? Array.isArray(S.seconds) ? p ? S.seconds[0] : S.seconds[1] : S.seconds : 0, b = () => {
7543
+ }, Y = (p = !0) => e.enableSeconds ? Array.isArray(S.seconds) ? p ? S.seconds[0] : S.seconds[1] : S.seconds : 0, g = () => {
7534
7544
  const p = o();
7535
7545
  if (p) {
7536
7546
  const A = Array.isArray(p), ee = A ? [+p[0].hours, +p[1].hours] : +p.hours, re = A ? [+p[0].minutes, +p[1].minutes] : +p.minutes, $e = A ? [+p[0].seconds, +p[1].seconds] : +p.seconds;
@@ -7548,8 +7558,8 @@ const Zv = (e, t = 3) => {
7548
7558
  return { month: Te(A), year: De(A) };
7549
7559
  }, T = (p) => {
7550
7560
  const A = Te(I(p)), ee = De(I(p));
7551
- if (R(0, A, ee), d.value.multiCalendars > 0)
7552
- for (let re = 1; re < d.value.multiCalendars; re++) {
7561
+ if (R(0, A, ee), f.value.multiCalendars > 0)
7562
+ for (let re = 1; re < f.value.multiCalendars; re++) {
7553
7563
  const $e = v(
7554
7564
  qe(I(p), { year: F.value(re - 1), month: M.value(re - 1) })
7555
7565
  );
@@ -7578,42 +7588,42 @@ const Zv = (e, t = 3) => {
7578
7588
  return $e <= +e.maxRange;
7579
7589
  }
7580
7590
  return !0;
7581
- }, G = (p) => Array.isArray(s.value) && s.value.length === 2 ? e.fixedStart && (Xe(p, s.value[0]) || Se(p, s.value[0])) ? [s.value[0], p] : e.fixedEnd && (Fe(p, s.value[1]) || Se(p, s.value[1])) ? [p, s.value[1]] : s.value : [], ce = () => {
7591
+ }, G = (p) => Array.isArray(s.value) && s.value.length === 2 ? e.fixedStart && (Xe(p, s.value[0]) || Se(p, s.value[0])) ? [s.value[0], p] : e.fixedEnd && (We(p, s.value[1]) || Se(p, s.value[1])) ? [p, s.value[1]] : s.value : [], fe = () => {
7582
7592
  e.autoApply && V.value && t("auto-apply");
7583
7593
  }, _ = () => {
7584
7594
  e.autoApply && t("select-date");
7585
- }, B = (p) => !Lo({ start: p[0], end: p[1] }).some((A) => l(A)), xe = (p) => (s.value = f(I(p.value)), ce()), he = (p) => {
7595
+ }, B = (p) => !Lo({ start: p[0], end: p[1] }).some((A) => l(A)), xe = (p) => (s.value = d(I(p.value)), fe()), he = (p) => {
7586
7596
  const A = at(I(p.value), S.hours, S.minutes, Y());
7587
- e.multiDates ? D(A) : s.value = A, n(), ce();
7597
+ e.multiDates ? D(A) : s.value = A, n(), fe();
7588
7598
  }, ue = () => {
7589
- g.value = s.value ? s.value.slice() : [], g.value.length === 2 && !(e.fixedStart || e.fixedEnd) && (g.value = []);
7599
+ b.value = s.value ? s.value.slice() : [], b.value.length === 2 && !(e.fixedStart || e.fixedEnd) && (b.value = []);
7590
7600
  }, Re = (p, A) => {
7591
7601
  const ee = [I(p.value), gt(I(p.value), +e.autoRange)];
7592
- B(ee) && (A && T(p.value), g.value = ee);
7602
+ B(ee) && (A && T(p.value), b.value = ee);
7593
7603
  }, tt = (p) => {
7594
- g.value = G(I(p.value));
7595
- }, se = (p) => e.noDisabledRange ? U(g.value[0], p).some((A) => l(A)) : !1, fe = (p, A) => {
7604
+ b.value = G(I(p.value));
7605
+ }, se = (p) => e.noDisabledRange ? U(b.value[0], p).some((A) => l(A)) : !1, de = (p, A) => {
7596
7606
  if (ue(), e.autoRange)
7597
7607
  return Re(p, A);
7598
7608
  if (e.fixedStart || e.fixedEnd)
7599
7609
  return tt(p);
7600
- g.value[0] ? h(I(p.value)) && !se(p.value) && (Fe(I(p.value), I(g.value[0])) ? g.value.unshift(I(p.value)) : g.value[1] = I(p.value)) : g.value[0] = I(p.value);
7610
+ b.value[0] ? h(I(p.value)) && !se(p.value) && (We(I(p.value), I(b.value[0])) ? b.value.unshift(I(p.value)) : b.value[1] = I(p.value)) : b.value[0] = I(p.value);
7601
7611
  }, ke = (p) => {
7602
- g.value[p] = at(
7603
- g.value[p],
7612
+ b.value[p] = at(
7613
+ b.value[p],
7604
7614
  S.hours[p],
7605
7615
  S.minutes[p],
7606
7616
  Y(p !== 1)
7607
7617
  );
7608
7618
  }, be = () => {
7609
- g.value.length && (g.value[0] && !g.value[1] ? ke(0) : (ke(0), ke(1), n()), s.value = g.value.slice(), g.value[0] && g.value[1] && e.autoApply && t("auto-apply"), g.value[0] && !g.value[1] && e.modelAuto && e.autoApply && t("auto-apply"));
7619
+ b.value.length && (b.value[0] && !b.value[1] ? ke(0) : (ke(0), ke(1), n()), s.value = b.value.slice(), b.value[0] && b.value[1] && e.autoApply && t("auto-apply"), b.value[0] && !b.value[1] && e.modelAuto && e.autoApply && t("auto-apply"));
7610
7620
  }, Ut = (p, A = !1) => {
7611
7621
  if (!(l(p.value) || !p.current && e.hideOffsetDates)) {
7612
7622
  if (e.weekPicker)
7613
7623
  return xe(p);
7614
7624
  if (!e.range)
7615
7625
  return he(p);
7616
- Tt(S.hours) && Tt(S.minutes) && !e.multiDates && (fe(p, A), be());
7626
+ Tt(S.hours) && Tt(S.minutes) && !e.multiDates && (de(p, A), be());
7617
7627
  }
7618
7628
  }, dt = (p) => {
7619
7629
  const A = p.find((ee) => ee.current);
@@ -7623,17 +7633,17 @@ const Zv = (e, t = 3) => {
7623
7633
  const ee = Et(qe(I(), { month: F.value(A + 1), year: M.value(A + 1) }), 1);
7624
7634
  R(A, Te(ee), De(ee));
7625
7635
  }
7626
- for (let A = p + 1; A <= d.value.multiCalendars - 1; A++) {
7636
+ for (let A = p + 1; A <= f.value.multiCalendars - 1; A++) {
7627
7637
  const ee = st(qe(I(), { month: F.value(A - 1), year: M.value(A - 1) }), 1);
7628
7638
  R(A, Te(ee), De(ee));
7629
7639
  }
7630
7640
  }, kt = (p) => y(I(), F.value(p), M.value(p)), Vt = (p) => at(p, S.hours, S.minutes, Y()), Ur = (p, A) => {
7631
7641
  const ee = e.monthPicker ? F.value(p) !== A.month || !A.fromNav : M.value(p) !== A.year;
7632
- if (R(p, A.month, A.year), d.value.multiCalendars && !e.multiCalendarsSolo && Lt(p), e.monthPicker || e.yearPicker)
7642
+ if (R(p, A.month, A.year), f.value.multiCalendars && !e.multiCalendarsSolo && Lt(p), e.monthPicker || e.yearPicker)
7633
7643
  if (e.range) {
7634
7644
  if (ee) {
7635
7645
  let re = s.value ? s.value.slice() : [];
7636
- re.length === 2 && re[1] !== null && (re = []), re.length ? Fe(kt(p), re[0]) ? re.unshift(kt(p)) : re[1] = kt(p) : re = [kt(p)], s.value = re;
7646
+ re.length === 2 && re[1] !== null && (re = []), re.length ? We(kt(p), re[0]) ? re.unshift(kt(p)) : re[1] = kt(p) : re = [kt(p)], s.value = re;
7637
7647
  }
7638
7648
  } else
7639
7649
  s.value = kt(p);
@@ -7647,7 +7657,7 @@ const Zv = (e, t = 3) => {
7647
7657
  n();
7648
7658
  }, en = (p, A) => {
7649
7659
  const ee = qe(I(), { month: F.value(A), year: M.value(A) }), re = p < 0 ? st(ee, 1) : Et(ee, 1);
7650
- w(Te(re), De(re), p < 0, e.preventMinMaxNavigation) && (R(A, Te(re), De(re)), d.value.multiCalendars && !e.multiCalendarsSolo && Lt(A), t("update-month-year", { instance: A, month: Te(re), year: De(re) }), r());
7660
+ O(Te(re), De(re), p < 0, e.preventMinMaxNavigation) && (R(A, Te(re), De(re)), f.value.multiCalendars && !e.multiCalendarsSolo && Lt(A), t("update-month-year", { instance: A, month: Te(re), year: De(re) }), r());
7651
7661
  }, Ht = (p) => {
7652
7662
  pi(p) && pi(s.value) && Tt(S.hours) && Tt(S.minutes) ? (p[0] && s.value[0] && (s.value[0] = at(p[0], S.hours[0], S.minutes[0], Y())), p[1] && s.value[1] && (s.value[1] = at(p[1], S.hours[1], S.minutes[1], Y(!1)))) : e.multiDates && Array.isArray(s.value) ? s.value[s.value.length - 1] = Vt(p) : !e.range && !yi(p) && (s.value = Vt(p)), t("time-update");
7653
7663
  }, Vr = (p, A = !0, ee = !1) => {
@@ -7690,7 +7700,7 @@ const Zv = (e, t = 3) => {
7690
7700
  handleArrow: Fr,
7691
7701
  handleSwipe: tn,
7692
7702
  selectCurrentDate: () => {
7693
- e.range ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = Fe(I(), s.value[0]) ? [I(), s.value[0]] : [s.value[0], I()] : s.value = [I()] : s.value = I(), _();
7703
+ e.range ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = We(I(), s.value[0]) ? [I(), s.value[0]] : [s.value[0], I()] : s.value = [I()] : s.value = I(), _();
7694
7704
  },
7695
7705
  presetDateRange: (p, A) => {
7696
7706
  A || p.length && p.length <= 2 && e.range && (s.value = p.map((ee) => I(ee)), _());
@@ -7702,12 +7712,12 @@ const Zv = (e, t = 3) => {
7702
7712
  getZonedDate: o,
7703
7713
  formatDate: l,
7704
7714
  getDefaultPattern: u,
7705
- checkRangeEnabled: f,
7715
+ checkRangeEnabled: d,
7706
7716
  checkPartialRangeValue: y,
7707
- isValidDate: w,
7708
- setDateMonthOrYear: d,
7717
+ isValidDate: O,
7718
+ setDateMonthOrYear: f,
7709
7719
  defaults: s
7710
- } = rt(t), g = W("");
7720
+ } = rt(t), b = W("");
7711
7721
  ct(r, () => {
7712
7722
  e("internal-model-change", r.value);
7713
7723
  });
@@ -7718,16 +7728,16 @@ const Zv = (e, t = 3) => {
7718
7728
  minutes: yt(G),
7719
7729
  seconds: t.enableSeconds ? Yt(G) : 0
7720
7730
  };
7721
- }, S = (h) => ({ month: Te(h), year: De(h) }), F = (h) => Array.isArray(h) ? f(() => [
7731
+ }, S = (h) => ({ month: Te(h), year: De(h) }), F = (h) => Array.isArray(h) ? d(() => [
7722
7732
  St(I(), h[0]),
7723
7733
  h[1] ? St(I(), h[1]) : y()
7724
7734
  ]) : St(I(), +h), M = (h) => Array.isArray(h) ? [
7725
7735
  at(null, +h[0].hours, +h[0].minutes, h[0].seconds),
7726
7736
  at(null, +h[1].hours, +h[1].minutes, h[1].seconds)
7727
- ] : at(null, h.hours, h.minutes, h == null ? void 0 : h.seconds), V = (h) => Array.isArray(h) ? f(() => [
7728
- d(null, +h[0].month, +h[0].year),
7729
- h[1] ? d(null, +h[1].month, +h[1].year) : y()
7730
- ]) : d(null, +h.month, +h.year), R = (h) => {
7737
+ ] : at(null, h.hours, h.minutes, h == null ? void 0 : h.seconds), V = (h) => Array.isArray(h) ? d(() => [
7738
+ f(null, +h[0].month, +h[0].year),
7739
+ h[1] ? f(null, +h[1].month, +h[1].year) : y()
7740
+ ]) : f(null, +h.month, +h.year), R = (h) => {
7731
7741
  if (Array.isArray(h))
7732
7742
  return h.map((G) => i(G));
7733
7743
  throw new Error(Ir.dateArr("multi-dates"));
@@ -7735,7 +7745,7 @@ const Zv = (e, t = 3) => {
7735
7745
  if (Array.isArray(h))
7736
7746
  return [I(h[0]), I(h[1])];
7737
7747
  throw new Error(Ir.dateArr("week-picker"));
7738
- }, te = (h) => t.modelAuto ? Array.isArray(h) ? [i(h[0]), i(h[1])] : t.autoApply ? [i(h)] : [i(h), null] : Array.isArray(h) ? f(() => [
7748
+ }, te = (h) => t.modelAuto ? Array.isArray(h) ? [i(h[0]), i(h[1])] : t.autoApply ? [i(h)] : [i(h), null] : Array.isArray(h) ? d(() => [
7739
7749
  i(h[0]),
7740
7750
  h[1] ? i(h[1]) : y()
7741
7751
  ]) : i(h), k = () => {
@@ -7746,24 +7756,24 @@ const Zv = (e, t = 3) => {
7746
7756
  v(h[0]),
7747
7757
  h[1] ? v(h[1]) : y()
7748
7758
  ];
7749
- }, N = () => r.value[1] ? P() : v(He(r.value[0])), K = () => (r.value || []).map((h) => v(h)), X = () => (k(), t.modelAuto ? N() : t.multiDates ? K() : Array.isArray(r.value) ? f(() => P()) : v(He(r.value))), L = (h) => h ? t.timePicker ? M(He(h)) : t.monthPicker ? V(He(h)) : t.yearPicker ? F(He(h)) : t.multiDates ? R(He(h)) : t.weekPicker ? j(He(h)) : te(He(h)) : null, Q = (h) => {
7759
+ }, N = () => r.value[1] ? P() : v(Fe(r.value[0])), K = () => (r.value || []).map((h) => v(h)), X = () => (k(), t.modelAuto ? N() : t.multiDates ? K() : Array.isArray(r.value) ? d(() => P()) : v(Fe(r.value))), L = (h) => h ? t.timePicker ? M(Fe(h)) : t.monthPicker ? V(Fe(h)) : t.yearPicker ? F(Fe(h)) : t.multiDates ? R(Fe(h)) : t.weekPicker ? j(Fe(h)) : te(Fe(h)) : null, Q = (h) => {
7750
7760
  const G = L(h);
7751
- w(He(G)) ? (r.value = He(G), z()) : (r.value = null, g.value = "");
7761
+ O(Fe(G)) ? (r.value = Fe(G), z()) : (r.value = null, b.value = "");
7752
7762
  }, le = () => {
7753
7763
  var h;
7754
- const G = (ce) => {
7764
+ const G = (fe) => {
7755
7765
  var _;
7756
- return Xt(ce, (_ = s.value.textInputOptions) == null ? void 0 : _.format);
7766
+ return Xt(fe, (_ = s.value.textInputOptions) == null ? void 0 : _.format);
7757
7767
  };
7758
7768
  return `${G(r.value[0])} ${(h = s.value.textInputOptions) == null ? void 0 : h.rangeSeparator} ${r.value[1] ? G(r.value[1]) : ""}`;
7759
7769
  }, Y = () => {
7760
7770
  var h;
7761
7771
  return n.value && r.value ? Array.isArray(r.value) ? le() : Xt(r.value, (h = s.value.textInputOptions) == null ? void 0 : h.format) : l(r.value);
7762
- }, b = () => {
7772
+ }, g = () => {
7763
7773
  var h;
7764
7774
  return r.value ? t.multiDates ? r.value.map((G) => l(G)).join("; ") : t.textInput && typeof ((h = s.value.textInputOptions) == null ? void 0 : h.format) == "string" ? Y() : l(r.value) : "";
7765
7775
  }, z = () => {
7766
- !t.format || typeof t.format == "string" ? g.value = b() : g.value = t.format(r.value);
7776
+ !t.format || typeof t.format == "string" ? b.value = g() : b.value = t.format(r.value);
7767
7777
  }, i = (h) => {
7768
7778
  if (t.utc) {
7769
7779
  const G = new Date(h);
@@ -7775,9 +7785,9 @@ const Zv = (e, t = 3) => {
7775
7785
  }, D = (h) => Array.isArray(r.value) ? [
7776
7786
  h(r.value[0]),
7777
7787
  r.value[1] ? h(r.value[1]) : y()
7778
- ] : h(He(r.value)), U = (h) => T(He(D(h)));
7788
+ ] : h(Fe(r.value)), U = (h) => T(Fe(D(h)));
7779
7789
  return {
7780
- inputValue: g,
7790
+ inputValue: b,
7781
7791
  internalModelValue: r,
7782
7792
  checkBeforeEmit: () => r.value ? t.range ? t.partialRange ? r.value.length >= 1 : r.value.length === 2 : !!r.value : !1,
7783
7793
  parseExternalModelValue: Q,
@@ -7785,25 +7795,25 @@ const Zv = (e, t = 3) => {
7785
7795
  emitModelValue: () => (z(), t.monthPicker ? U(S) : t.timePicker ? U(C) : t.yearPicker ? U(De) : t.weekPicker ? T(r.value) : T(X()))
7786
7796
  };
7787
7797
  }, fh = (e, t) => {
7788
- const { validateMonthYearInRange: n, validateMaxDate: r, validateMinDate: a, defaults: o } = rt(e), l = (d, s) => {
7789
- let g = d;
7790
- return o.value.filters.months.includes(Te(g)) ? (g = s ? st(d, 1) : Et(d, 1), l(g, s)) : g;
7791
- }, u = (d, s) => {
7792
- let g = d;
7793
- return o.value.filters.years.includes(De(g)) ? (g = s ? wi(d, 1) : Em(d, 1), u(g, s)) : g;
7794
- }, f = (d) => {
7798
+ const { validateMonthYearInRange: n, validateMaxDate: r, validateMinDate: a, defaults: o } = rt(e), l = (f, s) => {
7799
+ let b = f;
7800
+ return o.value.filters.months.includes(Te(b)) ? (b = s ? st(f, 1) : Et(f, 1), l(b, s)) : b;
7801
+ }, u = (f, s) => {
7802
+ let b = f;
7803
+ return o.value.filters.years.includes(De(b)) ? (b = s ? wi(f, 1) : Em(f, 1), u(b, s)) : b;
7804
+ }, d = (f) => {
7795
7805
  const s = qe(new Date(), { month: e.month, year: e.year });
7796
- let g = d ? st(s, 1) : Et(s, 1), C = Te(g), S = De(g);
7797
- o.value.filters.months.includes(C) && (g = l(g, d), C = Te(g), S = De(g)), o.value.filters.years.includes(S) && (g = u(g, d), S = De(g)), n(C, S, d, e.preventMinMaxNavigation) && y(C, S);
7798
- }, y = (d, s) => {
7799
- t("update-month-year", { month: d, year: s });
7800
- }, w = H(() => (d) => {
7801
- if (!e.preventMinMaxNavigation || d && !e.maxDate || !d && !e.minDate)
7806
+ let b = f ? st(s, 1) : Et(s, 1), C = Te(b), S = De(b);
7807
+ o.value.filters.months.includes(C) && (b = l(b, f), C = Te(b), S = De(b)), o.value.filters.years.includes(S) && (b = u(b, f), S = De(b)), n(C, S, f, e.preventMinMaxNavigation) && y(C, S);
7808
+ }, y = (f, s) => {
7809
+ t("update-month-year", { month: f, year: s });
7810
+ }, O = H(() => (f) => {
7811
+ if (!e.preventMinMaxNavigation || f && !e.maxDate || !f && !e.minDate)
7802
7812
  return !1;
7803
- const s = qe(new Date(), { month: e.month, year: e.year }), g = d ? st(s, 1) : Et(s, 1), C = [Te(g), De(g)];
7804
- return d ? !r(...C) : !a(...C);
7813
+ const s = qe(new Date(), { month: e.month, year: e.year }), b = f ? st(s, 1) : Et(s, 1), C = [Te(b), De(b)];
7814
+ return f ? !r(...C) : !a(...C);
7805
7815
  });
7806
- return { handleMonthYearChange: f, isDisabled: w, updateMonthYear: y };
7816
+ return { handleMonthYearChange: d, isDisabled: O, updateMonthYear: y };
7807
7817
  };
7808
7818
  var Kn = /* @__PURE__ */ ((e) => (e.center = "center", e.left = "left", e.right = "right", e))(Kn || {});
7809
7819
  const dh = (e, t, n, r) => {
@@ -7821,7 +7831,7 @@ const dh = (e, t, n, r) => {
7821
7831
  left: N.left + window.scrollX,
7822
7832
  top: N.top + window.scrollY
7823
7833
  };
7824
- }, f = (P) => {
7834
+ }, d = (P) => {
7825
7835
  const N = P.getBoundingClientRect();
7826
7836
  let K = 0, X = 0;
7827
7837
  for (; P && !isNaN(P.offsetLeft) && !isNaN(P.offsetTop); )
@@ -7829,23 +7839,23 @@ const dh = (e, t, n, r) => {
7829
7839
  return { top: X, left: K };
7830
7840
  }, y = (P, N) => {
7831
7841
  a.value.left = `${P + N}px`, a.value.transform = "translateX(-100%)";
7832
- }, w = (P) => {
7842
+ }, O = (P) => {
7833
7843
  a.value.left = `${P}px`, a.value.transform = "translateX(0)";
7834
- }, d = (P, N, K = !1) => {
7835
- r.position === Kn.left && w(P), r.position === Kn.right && y(P, N), r.position === Kn.center && (a.value.left = `${P + N / 2}px`, a.value.transform = K ? "translate(-50%, -50%)" : "translateX(-50%)");
7844
+ }, f = (P, N, K = !1) => {
7845
+ r.position === Kn.left && O(P), r.position === Kn.right && y(P, N), r.position === Kn.center && (a.value.left = `${P + N / 2}px`, a.value.transform = K ? "translate(-50%, -50%)" : "translateX(-50%)");
7836
7846
  }, s = (P) => {
7837
- const { width: N, height: K } = P.getBoundingClientRect(), { top: X, left: L } = r.altPosition ? f(P) : u(P);
7847
+ const { width: N, height: K } = P.getBoundingClientRect(), { top: X, left: L } = r.altPosition ? d(P) : u(P);
7838
7848
  return { top: X, left: L, width: N, height: K };
7839
- }, g = () => {
7840
- const P = Ve(t);
7849
+ }, b = () => {
7850
+ const P = He(t);
7841
7851
  if (P) {
7842
7852
  const { top: N, left: K, width: X, height: L } = s(P);
7843
- a.value.top = `${N + L / 2}px`, a.value.transform = "translateY(-50%)", d(K, X, !0);
7853
+ a.value.top = `${N + L / 2}px`, a.value.transform = "translateY(-50%)", f(K, X, !0);
7844
7854
  }
7845
7855
  }, C = () => {
7846
7856
  a.value.left = "50%", a.value.top = "50%", a.value.transform = "translate(-50%, -50%)", a.value.position = "fixed";
7847
7857
  }, S = () => {
7848
- const P = Ve(t);
7858
+ const P = He(t);
7849
7859
  a.value = r.altPosition(P);
7850
7860
  }, F = (P = !0) => {
7851
7861
  if (!r.inline)
@@ -7856,7 +7866,7 @@ const dh = (e, t, n, r) => {
7856
7866
  left: K,
7857
7867
  width: X
7858
7868
  }) => {
7859
- window.screen.width > 768 && d(K, X), j(P, N);
7869
+ window.screen.width > 768 && f(K, X), j(P, N);
7860
7870
  }, V = (P, N) => {
7861
7871
  const { top: K, left: X, height: L, width: Q } = s(P);
7862
7872
  a.value.top = `${L + K + +r.offset}px`, M({ inputEl: P, menuEl: N, left: X, width: Q }), o.value = !1;
@@ -7867,7 +7877,7 @@ const dh = (e, t, n, r) => {
7867
7877
  if (r.autoPosition) {
7868
7878
  const { left: K, width: X } = s(P), { left: L, right: Q } = N.getBoundingClientRect();
7869
7879
  if (L < 0)
7870
- return w(K);
7880
+ return O(K);
7871
7881
  if (Q > document.documentElement.clientWidth)
7872
7882
  return y(K, X);
7873
7883
  }
@@ -7875,11 +7885,11 @@ const dh = (e, t, n, r) => {
7875
7885
  const { height: K } = N.getBoundingClientRect(), { top: X, height: L } = P.getBoundingClientRect(), Q = window.innerHeight - X - L, le = X;
7876
7886
  return K <= Q ? V(P, N) : K > Q && K <= le ? R(P, N) : Q >= le ? V(P, N) : R(P, N);
7877
7887
  }, k = () => {
7878
- const P = Ve(t), N = Ve(e);
7888
+ const P = He(t), N = He(e);
7879
7889
  if (P && N)
7880
7890
  return r.autoPosition ? te(P, N) : V(P, N);
7881
7891
  };
7882
- return { openOnTop: o, menuPosition: a, setMenuPosition: F, setInitialPosition: g };
7892
+ return { openOnTop: o, menuPosition: a, setMenuPosition: F, setInitialPosition: b };
7883
7893
  }, It = [
7884
7894
  { name: "clock-icon", use: ["time", "calendar"] },
7885
7895
  { name: "arrow-left", use: ["month-year", "calendar"] },
@@ -8092,7 +8102,7 @@ const dh = (e, t, n, r) => {
8092
8102
  "blur"
8093
8103
  ],
8094
8104
  setup(e, { expose: t, emit: n }) {
8095
- const r = e, { getDefaultPattern: a, isValidDate: o, defaults: l } = rt(r), u = W(), f = W(null), y = W(!1), w = H(
8105
+ const r = e, { getDefaultPattern: a, isValidDate: o, defaults: l } = rt(r), u = W(), d = W(null), y = W(!1), O = H(
8096
8106
  () => ({
8097
8107
  dp__pointer: !r.disabled && !r.readonly && !r.textInput,
8098
8108
  dp__disabled: r.disabled,
@@ -8105,12 +8115,12 @@ const dh = (e, t, n, r) => {
8105
8115
  dp__input_reg: !r.textInput,
8106
8116
  [r.inputClassName]: !!r.inputClassName
8107
8117
  })
8108
- ), d = () => {
8118
+ ), f = () => {
8109
8119
  n("set-input-date", null), r.autoApply && (n("set-empty-date"), u.value = null);
8110
8120
  }, s = (k) => {
8111
8121
  var P;
8112
8122
  return kv(k, ((P = l.value.textInputOptions) == null ? void 0 : P.format) || a());
8113
- }, g = (k) => {
8123
+ }, b = (k) => {
8114
8124
  const { rangeSeparator: P } = l.value.textInputOptions;
8115
8125
  if (r.range) {
8116
8126
  const [N, K] = k.split(`${P}`);
@@ -8126,7 +8136,7 @@ const dh = (e, t, n, r) => {
8126
8136
  }, C = (k) => {
8127
8137
  var P;
8128
8138
  const { value: N } = k.target;
8129
- N !== "" ? ((P = l.value.textInputOptions) != null && P.openMenu && !r.isMenuOpen && n("open"), g(N), n("set-input-date", u.value)) : d(), n("update:input-value", N);
8139
+ N !== "" ? ((P = l.value.textInputOptions) != null && P.openMenu && !r.isMenuOpen && n("open"), b(N), n("set-input-date", u.value)) : f(), n("update:input-value", N);
8130
8140
  }, S = () => {
8131
8141
  var k, P;
8132
8142
  (k = l.value.textInputOptions) != null && k.enterSubmit && o(u.value) && r.inputValue !== "" ? (n("set-input-date", u.value, !0), u.value = null) : (P = l.value.textInputOptions) != null && P.enterSubmit && r.inputValue === "" && (u.value = null, n("clear"));
@@ -8147,11 +8157,11 @@ const dh = (e, t, n, r) => {
8147
8157
  };
8148
8158
  return t({
8149
8159
  focusInput: () => {
8150
- f.value && f.value.focus({ preventScroll: !0 });
8160
+ d.value && d.value.focus({ preventScroll: !0 });
8151
8161
  }
8152
8162
  }), (k, P) => {
8153
8163
  var N;
8154
- return m(), O("div", {
8164
+ return m(), w("div", {
8155
8165
  onClick: V,
8156
8166
  "aria-label": (N = c(l).ariaLabels) == null ? void 0 : N.input,
8157
8167
  role: "textbox",
@@ -8160,7 +8170,7 @@ const dh = (e, t, n, r) => {
8160
8170
  "aria-readonly": k.readonly
8161
8171
  }, [
8162
8172
  k.$slots.trigger && !k.$slots["dp-input"] && !k.inline ? q(k.$slots, "trigger", { key: 0 }) : $("", !0),
8163
- !k.$slots.trigger && (!k.inline || k.inlineWithInput) ? (m(), O("div", vh, [
8173
+ !k.$slots.trigger && (!k.inline || k.inlineWithInput) ? (m(), w("div", vh, [
8164
8174
  k.$slots["dp-input"] && !k.$slots.trigger && !k.inline ? q(k.$slots, "dp-input", {
8165
8175
  key: 0,
8166
8176
  value: e.inputValue,
@@ -8169,13 +8179,13 @@ const dh = (e, t, n, r) => {
8169
8179
  onTab: F,
8170
8180
  onClear: j
8171
8181
  }) : $("", !0),
8172
- k.$slots["dp-input"] ? $("", !0) : (m(), O("input", {
8182
+ k.$slots["dp-input"] ? $("", !0) : (m(), w("input", {
8173
8183
  key: 1,
8174
8184
  ref_key: "inputRef",
8175
- ref: f,
8185
+ ref: d,
8176
8186
  id: k.uid ? `dp-input-${k.uid}` : void 0,
8177
8187
  name: k.name,
8178
- class: ye(c(w)),
8188
+ class: ye(c(O)),
8179
8189
  inputmode: k.textInput ? "text" : "none",
8180
8190
  placeholder: k.placeholder,
8181
8191
  disabled: k.disabled,
@@ -8185,28 +8195,28 @@ const dh = (e, t, n, r) => {
8185
8195
  autocomplete: k.autocomplete,
8186
8196
  onInput: C,
8187
8197
  onKeydown: [
8188
- de(V, ["enter"]),
8189
- de(F, ["tab"])
8198
+ ce(V, ["enter"]),
8199
+ ce(F, ["tab"])
8190
8200
  ],
8191
8201
  onBlur: R,
8192
8202
  onFocus: M,
8193
8203
  onKeypress: te
8194
8204
  }, null, 42, hh)),
8195
- k.$slots["input-icon"] && !k.hideInputIcon ? (m(), O("span", _h, [
8205
+ k.$slots["input-icon"] && !k.hideInputIcon ? (m(), w("span", _h, [
8196
8206
  q(k.$slots, "input-icon")
8197
8207
  ])) : $("", !0),
8198
8208
  !k.$slots["input-icon"] && !k.hideInputIcon && !k.$slots["dp-input"] ? (m(), pe(c(Br), {
8199
8209
  key: 3,
8200
8210
  class: "dp__input_icon dp__input_icons"
8201
8211
  })) : $("", !0),
8202
- k.$slots["clear-icon"] && e.inputValue && k.clearable && !k.disabled && !k.readonly ? (m(), O("span", bh, [
8212
+ k.$slots["clear-icon"] && e.inputValue && k.clearable && !k.disabled && !k.readonly ? (m(), w("span", bh, [
8203
8213
  q(k.$slots, "clear-icon", { clear: j })
8204
8214
  ])) : $("", !0),
8205
8215
  k.clearable && !k.$slots["clear-icon"] && e.inputValue && !k.disabled && !k.readonly ? (m(), pe(c(Zm), {
8206
8216
  key: 5,
8207
8217
  class: "dp__clear_icon dp__input_icons",
8208
8218
  "data-test": "clear-icon",
8209
- onClick: We(j, ["stop", "prevent"])
8219
+ onClick: Ye(j, ["stop", "prevent"])
8210
8220
  }, null, 8, ["onClick"])) : $("", !0)
8211
8221
  ])) : $("", !0)
8212
8222
  ], 8, mh);
@@ -8222,17 +8232,17 @@ const dh = (e, t, n, r) => {
8222
8232
  },
8223
8233
  emits: ["close-picker", "select-date", "invalid-select"],
8224
8234
  setup(e, { emit: t }) {
8225
- const n = e, { formatDate: r, isValidTime: a, defaults: o } = rt(n), { buildMatrix: l } = Ot(), u = W(null), f = W(null);
8235
+ const n = e, { formatDate: r, isValidTime: a, defaults: o } = rt(n), { buildMatrix: l } = Ot(), u = W(null), d = W(null);
8226
8236
  et(() => {
8227
- n.arrowNavigation && l([Ve(u), Ve(f)], "actionRow");
8237
+ n.arrowNavigation && l([He(u), He(d)], "actionRow");
8228
8238
  });
8229
- const y = H(() => n.range && !n.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), w = H(() => !s.value || !g.value || !y.value), d = H(() => ({
8239
+ const y = H(() => n.range && !n.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), O = H(() => !s.value || !b.value || !y.value), f = H(() => ({
8230
8240
  dp__action: !0,
8231
8241
  dp__select: !0,
8232
- dp__action_disabled: w.value
8233
- })), s = H(() => !n.enableTimePicker || n.ignoreTimeValidation ? !0 : a(n.internalModelValue)), g = H(() => n.monthPicker ? M(n.internalModelValue) : !0), C = () => {
8242
+ dp__action_disabled: O.value
8243
+ })), s = H(() => !n.enableTimePicker || n.ignoreTimeValidation ? !0 : a(n.internalModelValue)), b = H(() => n.monthPicker ? M(n.internalModelValue) : !0), C = () => {
8234
8244
  const R = o.value.previewFormat;
8235
- return n.timePicker || n.monthPicker, R(He(n.internalModelValue));
8245
+ return n.timePicker || n.monthPicker, R(Fe(n.internalModelValue));
8236
8246
  }, S = () => {
8237
8247
  const R = n.internalModelValue;
8238
8248
  return o.value.multiCalendars > 0 ? `${r(R[0])} - ${r(R[1])}` : [r(R[0]), r(R[1])];
@@ -8240,30 +8250,30 @@ const dh = (e, t, n, r) => {
8240
8250
  if (!n.monthPicker)
8241
8251
  return !0;
8242
8252
  let j = !0;
8243
- return n.minDate && n.maxDate ? Xe(I(R), I(n.minDate)) && Fe(I(R), I(n.maxDate)) : (n.minDate && (j = Xe(I(R), I(n.minDate))), n.maxDate && (j = Fe(I(R), I(n.maxDate))), j);
8253
+ return n.minDate && n.maxDate ? Xe(I(R), I(n.minDate)) && We(I(R), I(n.maxDate)) : (n.minDate && (j = Xe(I(R), I(n.minDate))), n.maxDate && (j = We(I(R), I(n.maxDate))), j);
8244
8254
  }, V = () => {
8245
- s.value && g.value && y.value ? t("select-date") : t("invalid-select");
8255
+ s.value && b.value && y.value ? t("select-date") : t("invalid-select");
8246
8256
  };
8247
- return (R, j) => (m(), O("div", {
8257
+ return (R, j) => (m(), w("div", {
8248
8258
  class: "dp__action_row",
8249
8259
  style: mt(e.calendarWidth ? { width: `${e.calendarWidth}px` } : {})
8250
8260
  }, [
8251
8261
  R.$slots["action-row"] ? q(R.$slots, "action-row", nt(Be({ key: 0 }, {
8252
8262
  internalModelValue: e.internalModelValue,
8253
- disabled: c(w),
8263
+ disabled: c(O),
8254
8264
  selectDate: () => R.$emit("select-date"),
8255
8265
  closePicker: () => R.$emit("close-picker")
8256
- }))) : (m(), O(ve, { key: 1 }, [
8266
+ }))) : (m(), w(ve, { key: 1 }, [
8257
8267
  E("div", wh, [
8258
8268
  R.$slots["action-preview"] ? q(R.$slots, "action-preview", {
8259
8269
  key: 0,
8260
8270
  value: e.internalModelValue
8261
8271
  }) : $("", !0),
8262
- R.$slots["action-preview"] ? $("", !0) : (m(), O(ve, { key: 1 }, [
8263
- Array.isArray(c(F)) ? $("", !0) : (m(), O(ve, { key: 0 }, [
8272
+ R.$slots["action-preview"] ? $("", !0) : (m(), w(ve, { key: 1 }, [
8273
+ Array.isArray(c(F)) ? $("", !0) : (m(), w(ve, { key: 0 }, [
8264
8274
  Ge(me(c(F)), 1)
8265
8275
  ], 64)),
8266
- Array.isArray(c(F)) ? (m(!0), O(ve, { key: 1 }, Ae(c(F), (te, k) => (m(), O("div", { key: k }, me(te), 1))), 128)) : $("", !0)
8276
+ Array.isArray(c(F)) ? (m(!0), w(ve, { key: 1 }, Ae(c(F), (te, k) => (m(), w("div", { key: k }, me(te), 1))), 128)) : $("", !0)
8267
8277
  ], 64))
8268
8278
  ]),
8269
8279
  E("div", Oh, [
@@ -8271,8 +8281,8 @@ const dh = (e, t, n, r) => {
8271
8281
  key: 0,
8272
8282
  value: e.internalModelValue
8273
8283
  }) : $("", !0),
8274
- R.$slots["action-select"] ? $("", !0) : (m(), O(ve, { key: 1 }, [
8275
- R.inline ? $("", !0) : (m(), O("span", {
8284
+ R.$slots["action-select"] ? $("", !0) : (m(), w(ve, { key: 1 }, [
8285
+ R.inline ? $("", !0) : (m(), w("span", {
8276
8286
  key: 0,
8277
8287
  class: "dp__action dp__cancel",
8278
8288
  ref_key: "cancelButtonRef",
@@ -8280,21 +8290,21 @@ const dh = (e, t, n, r) => {
8280
8290
  tabindex: "0",
8281
8291
  onClick: j[0] || (j[0] = (te) => R.$emit("close-picker")),
8282
8292
  onKeydown: [
8283
- j[1] || (j[1] = de((te) => R.$emit("close-picker"), ["enter"])),
8284
- j[2] || (j[2] = de((te) => R.$emit("close-picker"), ["space"]))
8293
+ j[1] || (j[1] = ce((te) => R.$emit("close-picker"), ["enter"])),
8294
+ j[2] || (j[2] = ce((te) => R.$emit("close-picker"), ["space"]))
8285
8295
  ]
8286
8296
  }, me(R.cancelText), 545)),
8287
8297
  E("span", {
8288
- class: ye(c(d)),
8298
+ class: ye(c(f)),
8289
8299
  tabindex: "0",
8290
8300
  onKeydown: [
8291
- de(V, ["enter"]),
8292
- de(V, ["space"])
8301
+ ce(V, ["enter"]),
8302
+ ce(V, ["space"])
8293
8303
  ],
8294
8304
  onClick: V,
8295
8305
  "data-test": "select-button",
8296
8306
  ref_key: "selectButtonRef",
8297
- ref: f
8307
+ ref: d
8298
8308
  }, me(R.selectText), 43, $h)
8299
8309
  ], 64))
8300
8310
  ])
@@ -8335,15 +8345,15 @@ const dh = (e, t, n, r) => {
8335
8345
  "handle-space"
8336
8346
  ],
8337
8347
  setup(e, { expose: t, emit: n }) {
8338
- const r = e, { buildMultiLevelMatrix: a } = Ot(), { setDateMonthOrYear: o, defaults: l } = rt(r), u = W(null), f = W({ bottom: "", left: "", transform: "" }), y = W([]), w = W(null), d = W(!0), s = W(""), g = W({ startX: 0, endX: 0, startY: 0, endY: 0 }), C = H(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : Gv(r.locale, +r.weekStart));
8348
+ const r = e, { buildMultiLevelMatrix: a } = Ot(), { setDateMonthOrYear: o, defaults: l } = rt(r), u = W(null), d = W({ bottom: "", left: "", transform: "" }), y = W([]), O = W(null), f = W(!0), s = W(""), b = W({ startX: 0, endX: 0, startY: 0, endY: 0 }), C = H(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : Gv(r.locale, +r.weekStart));
8339
8349
  et(() => {
8340
- n("mount", { cmp: "calendar", refs: y }), r.noSwipe || w.value && (w.value.addEventListener("touchstart", K, { passive: !1 }), w.value.addEventListener("touchend", X, { passive: !1 }), w.value.addEventListener("touchmove", L, { passive: !1 })), r.monthChangeOnScroll && w.value && w.value.addEventListener("wheel", Y, { passive: !1 });
8350
+ n("mount", { cmp: "calendar", refs: y }), r.noSwipe || O.value && (O.value.addEventListener("touchstart", K, { passive: !1 }), O.value.addEventListener("touchend", X, { passive: !1 }), O.value.addEventListener("touchmove", L, { passive: !1 })), r.monthChangeOnScroll && O.value && O.value.addEventListener("wheel", Y, { passive: !1 });
8341
8351
  });
8342
- const S = (b) => b ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", F = (b, z) => {
8352
+ const S = (g) => g ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", F = (g, z) => {
8343
8353
  if (r.transitions) {
8344
8354
  const i = ft(o(I(), r.month, r.year));
8345
- s.value = Xe(ft(o(I(), b, z)), i) ? l.value.transitions[S(!0)] : l.value.transitions[S(!1)], d.value = !1, Mt(() => {
8346
- d.value = !0;
8355
+ s.value = Xe(ft(o(I(), g, z)), i) ? l.value.transitions[S(!0)] : l.value.transitions[S(!1)], f.value = !1, Mt(() => {
8356
+ f.value = !0;
8347
8357
  });
8348
8358
  }
8349
8359
  }, M = H(
@@ -8351,74 +8361,74 @@ const dh = (e, t, n, r) => {
8351
8361
  dp__calendar_wrap: !0,
8352
8362
  [r.calendarClassName]: !!r.calendarClassName
8353
8363
  })
8354
- ), V = H(() => (b) => {
8355
- const z = nh(b);
8364
+ ), V = H(() => (g) => {
8365
+ const z = nh(g);
8356
8366
  return {
8357
8367
  dp__marker_dot: z.type === "dot",
8358
8368
  dp__marker_line: z.type === "line"
8359
8369
  };
8360
- }), R = H(() => (b) => Se(b, u.value)), j = H(() => ({
8370
+ }), R = H(() => (g) => Se(g, u.value)), j = H(() => ({
8361
8371
  dp__calendar: !0,
8362
8372
  dp__calendar_next: l.value.multiCalendars > 0 && r.instance !== 0
8363
- })), te = H(() => (b) => r.hideOffsetDates ? b.current : !0), k = H(() => r.specificMode ? { height: `${r.modeHeight}px` } : void 0), P = (b, z, i) => {
8373
+ })), te = H(() => (g) => r.hideOffsetDates ? g.current : !0), k = H(() => r.specificMode ? { height: `${r.modeHeight}px` } : void 0), P = (g, z, i) => {
8364
8374
  var v, T;
8365
- if (n("set-hover-date", b), (T = (v = b.marker) == null ? void 0 : v.tooltip) != null && T.length) {
8366
- const D = Ve(y.value[z][i]);
8375
+ if (n("set-hover-date", g), (T = (v = g.marker) == null ? void 0 : v.tooltip) != null && T.length) {
8376
+ const D = He(y.value[z][i]);
8367
8377
  if (D) {
8368
8378
  const { width: U, height: h } = D.getBoundingClientRect();
8369
- f.value = {
8379
+ d.value = {
8370
8380
  bottom: `${h}px`,
8371
8381
  left: `${U / 2}px`,
8372
8382
  transform: "translateX(-50%)"
8373
- }, u.value = b.value;
8383
+ }, u.value = g.value;
8374
8384
  }
8375
8385
  }
8376
8386
  }, N = () => {
8377
8387
  u.value = null;
8378
- }, K = (b) => {
8379
- g.value.startX = b.changedTouches[0].screenX, g.value.startY = b.changedTouches[0].screenY;
8380
- }, X = (b) => {
8381
- g.value.endX = b.changedTouches[0].screenX, g.value.endY = b.changedTouches[0].screenY, Q();
8382
- }, L = (b) => {
8383
- r.vertical && !r.inline && b.preventDefault();
8388
+ }, K = (g) => {
8389
+ b.value.startX = g.changedTouches[0].screenX, b.value.startY = g.changedTouches[0].screenY;
8390
+ }, X = (g) => {
8391
+ b.value.endX = g.changedTouches[0].screenX, b.value.endY = g.changedTouches[0].screenY, Q();
8392
+ }, L = (g) => {
8393
+ r.vertical && !r.inline && g.preventDefault();
8384
8394
  }, Q = () => {
8385
- const b = r.vertical ? "Y" : "X";
8386
- Math.abs(g.value[`start${b}`] - g.value[`end${b}`]) > 10 && n("handle-swipe", g.value[`start${b}`] > g.value[`end${b}`] ? "right" : "left");
8387
- }, le = (b, z, i) => {
8388
- b && (Array.isArray(y.value[z]) ? y.value[z][i] = b : y.value[z] = [b]), r.arrowNavigation && a(y.value, "calendar");
8389
- }, Y = (b) => {
8390
- r.monthChangeOnScroll && (b.preventDefault(), n("handle-scroll", b));
8395
+ const g = r.vertical ? "Y" : "X";
8396
+ Math.abs(b.value[`start${g}`] - b.value[`end${g}`]) > 10 && n("handle-swipe", b.value[`start${g}`] > b.value[`end${g}`] ? "right" : "left");
8397
+ }, le = (g, z, i) => {
8398
+ g && (Array.isArray(y.value[z]) ? y.value[z][i] = g : y.value[z] = [g]), r.arrowNavigation && a(y.value, "calendar");
8399
+ }, Y = (g) => {
8400
+ r.monthChangeOnScroll && (g.preventDefault(), n("handle-scroll", g));
8391
8401
  };
8392
- return t({ triggerTransition: F }), (b, z) => {
8402
+ return t({ triggerTransition: F }), (g, z) => {
8393
8403
  var i;
8394
- return m(), O("div", {
8404
+ return m(), w("div", {
8395
8405
  class: ye(c(j))
8396
8406
  }, [
8397
8407
  E("div", {
8398
8408
  style: mt(c(k))
8399
8409
  }, [
8400
- e.specificMode ? $("", !0) : (m(), O("div", {
8410
+ e.specificMode ? $("", !0) : (m(), w("div", {
8401
8411
  key: 0,
8402
8412
  ref_key: "calendarWrapRef",
8403
- ref: w,
8413
+ ref: O,
8404
8414
  class: ye(c(M)),
8405
8415
  role: "grid",
8406
8416
  "aria-label": (i = c(l).ariaLabels) == null ? void 0 : i.calendarWrap
8407
8417
  }, [
8408
8418
  E("div", Th, [
8409
- b.weekNumbers ? (m(), O("div", Dh, me(b.weekNumName), 1)) : $("", !0),
8410
- (m(!0), O(ve, null, Ae(c(C), (v, T) => (m(), O("div", {
8419
+ g.weekNumbers ? (m(), w("div", Dh, me(g.weekNumName), 1)) : $("", !0),
8420
+ (m(!0), w(ve, null, Ae(c(C), (v, T) => (m(), w("div", {
8411
8421
  class: "dp__calendar_header_item",
8412
8422
  role: "gridcell",
8413
8423
  key: T,
8414
8424
  "data-test": "calendar-header"
8415
8425
  }, [
8416
- b.$slots["calendar-header"] ? q(b.$slots, "calendar-header", {
8426
+ g.$slots["calendar-header"] ? q(g.$slots, "calendar-header", {
8417
8427
  key: 0,
8418
8428
  day: v,
8419
8429
  index: T
8420
8430
  }) : $("", !0),
8421
- b.$slots["calendar-header"] ? $("", !0) : (m(), O(ve, { key: 1 }, [
8431
+ g.$slots["calendar-header"] ? $("", !0) : (m(), w(ve, { key: 1 }, [
8422
8432
  Ge(me(v), 1)
8423
8433
  ], 64))
8424
8434
  ]))), 128))
@@ -8426,28 +8436,28 @@ const dh = (e, t, n, r) => {
8426
8436
  xh,
8427
8437
  Ce(Je, {
8428
8438
  name: s.value,
8429
- css: !!b.transitions
8439
+ css: !!g.transitions
8430
8440
  }, {
8431
8441
  default: ne(() => {
8432
8442
  var v;
8433
8443
  return [
8434
- d.value ? (m(), O("div", {
8444
+ f.value ? (m(), w("div", {
8435
8445
  key: 0,
8436
8446
  class: "dp__calendar",
8437
8447
  role: "grid",
8438
8448
  "aria-label": (v = c(l).ariaLabels) == null ? void 0 : v.calendarDays
8439
8449
  }, [
8440
- (m(!0), O(ve, null, Ae(e.mappedDates, (T, D) => (m(), O("div", {
8450
+ (m(!0), w(ve, null, Ae(e.mappedDates, (T, D) => (m(), w("div", {
8441
8451
  class: "dp__calendar_row",
8442
8452
  role: "row",
8443
8453
  key: D
8444
8454
  }, [
8445
- b.weekNumbers ? (m(), O("div", Rh, [
8455
+ g.weekNumbers ? (m(), w("div", Rh, [
8446
8456
  E("div", Mh, me(e.getWeekNum(T.days)), 1)
8447
8457
  ])) : $("", !0),
8448
- (m(!0), O(ve, null, Ae(T.days, (U, h) => {
8449
- var G, ce, _;
8450
- return m(), O("div", {
8458
+ (m(!0), w(ve, null, Ae(T.days, (U, h) => {
8459
+ var G, fe, _;
8460
+ return m(), w("div", {
8451
8461
  role: "gridcell",
8452
8462
  class: "dp__calendar_item",
8453
8463
  ref_for: !0,
@@ -8455,13 +8465,13 @@ const dh = (e, t, n, r) => {
8455
8465
  key: h + D,
8456
8466
  "aria-selected": U.classData.dp__active_date || U.classData.dp__range_start || U.classData.dp__range_start,
8457
8467
  "aria-disabled": U.classData.dp__cell_disabled,
8458
- "aria-label": (ce = (G = c(l).ariaLabels) == null ? void 0 : G.day) == null ? void 0 : ce.call(G, U),
8468
+ "aria-label": (fe = (G = c(l).ariaLabels) == null ? void 0 : G.day) == null ? void 0 : fe.call(G, U),
8459
8469
  tabindex: "0",
8460
8470
  "data-test": U.value,
8461
- onClick: We((B) => b.$emit("select-date", U), ["stop", "prevent"]),
8471
+ onClick: Ye((B) => g.$emit("select-date", U), ["stop", "prevent"]),
8462
8472
  onKeydown: [
8463
- de((B) => b.$emit("select-date", U), ["enter"]),
8464
- de((B) => b.$emit("handle-space", U), ["space"])
8473
+ ce((B) => g.$emit("select-date", U), ["enter"]),
8474
+ ce((B) => g.$emit("handle-space", U), ["space"])
8465
8475
  ],
8466
8476
  onMouseover: (B) => P(U, D, h),
8467
8477
  onMouseleave: N
@@ -8469,40 +8479,40 @@ const dh = (e, t, n, r) => {
8469
8479
  E("div", {
8470
8480
  class: ye(["dp__cell_inner", U.classData])
8471
8481
  }, [
8472
- b.$slots.day && c(te)(U) ? q(b.$slots, "day", {
8482
+ g.$slots.day && c(te)(U) ? q(g.$slots, "day", {
8473
8483
  key: 0,
8474
8484
  day: +U.text,
8475
8485
  date: U.value
8476
8486
  }) : $("", !0),
8477
- b.$slots.day ? $("", !0) : (m(), O(ve, { key: 1 }, [
8487
+ g.$slots.day ? $("", !0) : (m(), w(ve, { key: 1 }, [
8478
8488
  Ge(me(U.text), 1)
8479
8489
  ], 64)),
8480
- U.marker && c(te)(U) ? (m(), O("div", {
8490
+ U.marker && c(te)(U) ? (m(), w("div", {
8481
8491
  key: 2,
8482
8492
  class: ye(c(V)(U.marker)),
8483
8493
  style: mt(U.marker.color ? { backgroundColor: U.marker.color } : {})
8484
8494
  }, null, 6)) : $("", !0),
8485
- c(R)(U.value) ? (m(), O("div", {
8495
+ c(R)(U.value) ? (m(), w("div", {
8486
8496
  key: 3,
8487
8497
  class: "dp__marker_tooltip",
8488
- style: mt(f.value)
8498
+ style: mt(d.value)
8489
8499
  }, [
8490
- (_ = U.marker) != null && _.tooltip ? (m(), O("div", {
8500
+ (_ = U.marker) != null && _.tooltip ? (m(), w("div", {
8491
8501
  key: 0,
8492
8502
  class: "dp__tooltip_content",
8493
- onClick: z[0] || (z[0] = We(() => {
8503
+ onClick: z[0] || (z[0] = Ye(() => {
8494
8504
  }, ["stop"]))
8495
8505
  }, [
8496
- (m(!0), O(ve, null, Ae(U.marker.tooltip, (B, xe) => (m(), O("div", {
8506
+ (m(!0), w(ve, null, Ae(U.marker.tooltip, (B, xe) => (m(), w("div", {
8497
8507
  key: xe,
8498
8508
  class: "dp__tooltip_text"
8499
8509
  }, [
8500
- b.$slots["marker-tooltip"] ? q(b.$slots, "marker-tooltip", {
8510
+ g.$slots["marker-tooltip"] ? q(g.$slots, "marker-tooltip", {
8501
8511
  key: 0,
8502
8512
  tooltop: B,
8503
8513
  day: U.value
8504
8514
  }) : $("", !0),
8505
- b.$slots["marker-tooltip"] ? $("", !0) : (m(), O(ve, { key: 1 }, [
8515
+ g.$slots["marker-tooltip"] ? $("", !0) : (m(), w(ve, { key: 1 }, [
8506
8516
  E("div", {
8507
8517
  class: "dp__tooltip_mark",
8508
8518
  style: mt(B.color ? { backgroundColor: B.color } : {})
@@ -8536,12 +8546,12 @@ const dh = (e, t, n, r) => {
8536
8546
  emits: ["activate", "set-ref"],
8537
8547
  setup(e, { emit: t }) {
8538
8548
  const n = W(null);
8539
- return et(() => t("set-ref", n)), (r, a) => (m(), O("div", {
8549
+ return et(() => t("set-ref", n)), (r, a) => (m(), w("div", {
8540
8550
  class: "dp__month_year_col_nav",
8541
8551
  onClick: a[0] || (a[0] = (o) => r.$emit("activate")),
8542
8552
  onKeydown: [
8543
- a[1] || (a[1] = de((o) => r.$emit("activate"), ["enter"])),
8544
- a[2] || (a[2] = de((o) => r.$emit("activate"), ["space"]))
8553
+ a[1] || (a[1] = ce((o) => r.$emit("activate"), ["enter"])),
8554
+ a[2] || (a[2] = ce((o) => r.$emit("activate"), ["space"]))
8545
8555
  ],
8546
8556
  tabindex: "0",
8547
8557
  role: "button",
@@ -8582,101 +8592,101 @@ const dh = (e, t, n, r) => {
8582
8592
  },
8583
8593
  emits: ["update:model-value", "selected", "toggle", "reset-flow"],
8584
8594
  setup(e, { expose: t, emit: n }) {
8585
- const r = e, { setSelectionGrid: a, buildMultiLevelMatrix: o, setMonthPicker: l } = Ot(), { hideNavigationButtons: u } = rt(r), f = W(!1), y = W(null), w = W(null), d = W([]), s = W(), g = W(null);
8595
+ const r = e, { setSelectionGrid: a, buildMultiLevelMatrix: o, setMonthPicker: l } = Ot(), { hideNavigationButtons: u } = rt(r), d = W(!1), y = W(null), O = W(null), f = W([]), s = W(), b = W(null);
8586
8596
  Ji(() => {
8587
8597
  y.value = null;
8588
8598
  }), et(() => {
8589
8599
  Mt().then(() => P()), S(), C(!0);
8590
8600
  }), Oo(() => C(!1));
8591
8601
  const C = (Y) => {
8592
- var b;
8593
- r.arrowNavigation && ((b = r.headerRefs) != null && b.length ? l(Y) : a(Y));
8602
+ var g;
8603
+ r.arrowNavigation && ((g = r.headerRefs) != null && g.length ? l(Y) : a(Y));
8594
8604
  }, S = () => {
8595
- const Y = Ve(w);
8596
- Y && (r.textInput || Y.focus({ preventScroll: !0 }), f.value = Y.clientHeight < Y.scrollHeight);
8605
+ const Y = He(O);
8606
+ Y && (r.textInput || Y.focus({ preventScroll: !0 }), d.value = Y.clientHeight < Y.scrollHeight);
8597
8607
  }, F = H(
8598
8608
  () => ({
8599
8609
  dp__overlay: !0
8600
8610
  })
8601
8611
  ), M = H(() => ({
8602
8612
  dp__overlay_col: !0
8603
- })), V = (Y) => r.skipActive ? !1 : Y.value === r.modelValue, R = H(() => r.items.map((Y) => Y.filter((b) => b).map((b) => {
8613
+ })), V = (Y) => r.skipActive ? !1 : Y.value === r.modelValue, R = H(() => r.items.map((Y) => Y.filter((g) => g).map((g) => {
8604
8614
  var z, i, v;
8605
- const T = r.disabledValues.some((U) => U === b.value) || k(b.value), D = (z = r.multiModelValue) != null && z.length ? (i = r.multiModelValue) == null ? void 0 : i.some(
8615
+ const T = r.disabledValues.some((U) => U === g.value) || k(g.value), D = (z = r.multiModelValue) != null && z.length ? (i = r.multiModelValue) == null ? void 0 : i.some(
8606
8616
  (U) => Se(
8607
8617
  U,
8608
8618
  St(
8609
- r.monthPicker ? Qt(new Date(), b.value) : new Date(),
8610
- r.monthPicker ? r.year : b.value
8619
+ r.monthPicker ? Qt(new Date(), g.value) : new Date(),
8620
+ r.monthPicker ? r.year : g.value
8611
8621
  )
8612
8622
  )
8613
- ) : V(b);
8623
+ ) : V(g);
8614
8624
  return {
8615
- ...b,
8625
+ ...g,
8616
8626
  className: {
8617
8627
  dp__overlay_cell_active: D,
8618
8628
  dp__overlay_cell: !D,
8619
8629
  dp__overlay_cell_disabled: T,
8620
8630
  dp__overlay_cell_active_disabled: T && D,
8621
8631
  dp__overlay_cell_pad: !0,
8622
- dp__cell_in_between: (v = r.multiModelValue) != null && v.length ? K(b.value) : !1
8632
+ dp__cell_in_between: (v = r.multiModelValue) != null && v.length ? K(g.value) : !1
8623
8633
  }
8624
8634
  };
8625
8635
  }))), j = H(
8626
8636
  () => ({
8627
8637
  dp__button: !0,
8628
8638
  dp__overlay_action: !0,
8629
- dp__over_action_scroll: f.value,
8639
+ dp__over_action_scroll: d.value,
8630
8640
  dp__button_bottom: r.autoApply
8631
8641
  })
8632
8642
  ), te = H(() => {
8633
- var Y, b;
8643
+ var Y, g;
8634
8644
  return {
8635
8645
  dp__overlay_container: !0,
8636
8646
  dp__container_flex: ((Y = r.items) == null ? void 0 : Y.length) <= 6,
8637
- dp__container_block: ((b = r.items) == null ? void 0 : b.length) > 6
8647
+ dp__container_block: ((g = r.items) == null ? void 0 : g.length) > 6
8638
8648
  };
8639
8649
  }), k = (Y) => {
8640
- const b = r.maxValue || r.maxValue === 0, z = r.minValue || r.minValue === 0;
8641
- return !b && !z ? !1 : b && z ? +Y > +r.maxValue || +Y < +r.minValue : b ? +Y > +r.maxValue : z ? +Y < +r.minValue : !1;
8650
+ const g = r.maxValue || r.maxValue === 0, z = r.minValue || r.minValue === 0;
8651
+ return !g && !z ? !1 : g && z ? +Y > +r.maxValue || +Y < +r.minValue : g ? +Y > +r.maxValue : z ? +Y < +r.minValue : !1;
8642
8652
  }, P = () => {
8643
- const Y = Ve(y);
8653
+ const Y = He(y);
8644
8654
  if (Y) {
8645
- const b = Ve(w);
8646
- b && (b.scrollTop = Y.offsetTop - b.offsetTop - (b.getBoundingClientRect().height / 2 - Y.getBoundingClientRect().height));
8655
+ const g = He(O);
8656
+ g && (g.scrollTop = Y.offsetTop - g.offsetTop - (g.getBoundingClientRect().height / 2 - Y.getBoundingClientRect().height));
8647
8657
  }
8648
8658
  }, N = (Y) => {
8649
- !r.disabledValues.some((b) => b === Y) && !k(Y) && (n("update:model-value", Y), n("selected"));
8659
+ !r.disabledValues.some((g) => g === Y) && !k(Y) && (n("update:model-value", Y), n("selected"));
8650
8660
  }, K = (Y) => {
8651
- const b = r.monthPicker ? r.year : Y;
8661
+ const g = r.monthPicker ? r.year : Y;
8652
8662
  return ji(
8653
8663
  r.multiModelValue,
8654
8664
  St(
8655
8665
  r.monthPicker ? Qt(new Date(), s.value || 0) : new Date(),
8656
- r.monthPicker ? b : s.value || b
8666
+ r.monthPicker ? g : s.value || g
8657
8667
  ),
8658
- St(r.monthPicker ? Qt(new Date(), Y) : new Date(), b)
8668
+ St(r.monthPicker ? Qt(new Date(), Y) : new Date(), g)
8659
8669
  );
8660
8670
  }, X = () => {
8661
8671
  n("toggle"), n("reset-flow");
8662
8672
  }, L = () => {
8663
8673
  r.escClose && X();
8664
- }, Q = (Y, b, z, i) => {
8665
- Y && (b.value === +r.modelValue && !r.disabledValues.includes(b.value) && (y.value = Y), r.arrowNavigation && (Array.isArray(d.value[z]) ? d.value[z][i] = Y : d.value[z] = [Y], le()));
8674
+ }, Q = (Y, g, z, i) => {
8675
+ Y && (g.value === +r.modelValue && !r.disabledValues.includes(g.value) && (y.value = Y), r.arrowNavigation && (Array.isArray(f.value[z]) ? f.value[z][i] = Y : f.value[z] = [Y], le()));
8666
8676
  }, le = () => {
8667
- var Y, b;
8668
- const z = (Y = r.headerRefs) != null && Y.length ? [r.headerRefs].concat(d.value) : d.value.concat([r.skipButtonRef ? [] : [g.value]]);
8669
- o(He(z), (b = r.headerRefs) != null && b.length ? "monthPicker" : "selectionGrid");
8677
+ var Y, g;
8678
+ const z = (Y = r.headerRefs) != null && Y.length ? [r.headerRefs].concat(f.value) : f.value.concat([r.skipButtonRef ? [] : [b.value]]);
8679
+ o(Fe(z), (g = r.headerRefs) != null && g.length ? "monthPicker" : "selectionGrid");
8670
8680
  };
8671
- return t({ focusGrid: S }), (Y, b) => {
8681
+ return t({ focusGrid: S }), (Y, g) => {
8672
8682
  var z;
8673
- return m(), O("div", {
8683
+ return m(), w("div", {
8674
8684
  ref_key: "gridWrapRef",
8675
- ref: w,
8685
+ ref: O,
8676
8686
  class: ye(c(F)),
8677
8687
  role: "dialog",
8678
8688
  tabindex: "0",
8679
- onKeydown: de(L, ["esc"])
8689
+ onKeydown: ce(L, ["esc"])
8680
8690
  }, [
8681
8691
  E("div", {
8682
8692
  class: ye(c(te)),
@@ -8685,13 +8695,13 @@ const dh = (e, t, n, r) => {
8685
8695
  E("div", Bh, [
8686
8696
  q(Y.$slots, "header")
8687
8697
  ]),
8688
- Y.$slots.overlay ? q(Y.$slots, "overlay", { key: 0 }) : (m(), O(ve, { key: 1 }, [
8689
- (m(!0), O(ve, null, Ae(c(R), (i, v) => (m(), O("div", {
8698
+ Y.$slots.overlay ? q(Y.$slots, "overlay", { key: 0 }) : (m(), w(ve, { key: 1 }, [
8699
+ (m(!0), w(ve, null, Ae(c(R), (i, v) => (m(), w("div", {
8690
8700
  class: "dp__overlay_row",
8691
8701
  key: v,
8692
8702
  role: "row"
8693
8703
  }, [
8694
- (m(!0), O(ve, null, Ae(i, (T, D) => (m(), O("div", {
8704
+ (m(!0), w(ve, null, Ae(i, (T, D) => (m(), w("div", {
8695
8705
  role: "gridcell",
8696
8706
  class: ye(c(M)),
8697
8707
  key: T.value,
@@ -8703,8 +8713,8 @@ const dh = (e, t, n, r) => {
8703
8713
  "data-test": T.text,
8704
8714
  onClick: (U) => N(T.value),
8705
8715
  onKeydown: [
8706
- de((U) => N(T.value), ["enter"]),
8707
- de((U) => N(T.value), ["space"])
8716
+ ce((U) => N(T.value), ["enter"]),
8717
+ ce((U) => N(T.value), ["space"])
8708
8718
  ],
8709
8719
  onMouseover: (U) => s.value = T.value
8710
8720
  }, [
@@ -8715,22 +8725,22 @@ const dh = (e, t, n, r) => {
8715
8725
  key: 0,
8716
8726
  item: T
8717
8727
  }) : $("", !0),
8718
- Y.$slots.item ? $("", !0) : (m(), O(ve, { key: 1 }, [
8728
+ Y.$slots.item ? $("", !0) : (m(), w(ve, { key: 1 }, [
8719
8729
  Ge(me(T.text), 1)
8720
8730
  ], 64))
8721
8731
  ], 2)
8722
8732
  ], 42, Yh))), 128))
8723
8733
  ]))), 128)),
8724
- Y.$slots["button-icon"] ? Ye((m(), O("div", {
8734
+ Y.$slots["button-icon"] ? Ue((m(), w("div", {
8725
8735
  key: 0,
8726
8736
  role: "button",
8727
8737
  "aria-label": (z = e.ariaLabels) == null ? void 0 : z.toggleOverlay,
8728
8738
  class: ye(c(j)),
8729
8739
  tabindex: "0",
8730
8740
  ref_key: "toggleButton",
8731
- ref: g,
8741
+ ref: b,
8732
8742
  onClick: X,
8733
- onKeydown: de(X, ["enter"])
8743
+ onKeydown: ce(X, ["enter"])
8734
8744
  }, [
8735
8745
  q(Y.$slots, "button-icon")
8736
8746
  ], 42, Uh)), [
@@ -8766,13 +8776,13 @@ const dh = (e, t, n, r) => {
8766
8776
  emits: ["update:model-value", "toggle", "set-ref"],
8767
8777
  setup(e, { emit: t }) {
8768
8778
  const n = e, { transitionName: r, showTransition: a } = Yr(n.transitions), o = W(null);
8769
- return et(() => t("set-ref", o)), (l, u) => (m(), O(ve, null, [
8779
+ return et(() => t("set-ref", o)), (l, u) => (m(), w(ve, null, [
8770
8780
  E("div", {
8771
8781
  class: "dp__month_year_select",
8772
- onClick: u[0] || (u[0] = (f) => l.$emit("toggle")),
8782
+ onClick: u[0] || (u[0] = (d) => l.$emit("toggle")),
8773
8783
  onKeydown: [
8774
- u[1] || (u[1] = de((f) => l.$emit("toggle"), ["enter"])),
8775
- u[2] || (u[2] = de((f) => l.$emit("toggle"), ["space"]))
8784
+ u[1] || (u[1] = ce((d) => l.$emit("toggle"), ["enter"])),
8785
+ u[2] || (u[2] = ce((d) => l.$emit("toggle"), ["space"]))
8776
8786
  ],
8777
8787
  role: "button",
8778
8788
  "aria-label": e.ariaLabel,
@@ -8802,8 +8812,8 @@ const dh = (e, t, n, r) => {
8802
8812
  hideNavigation: e.hideNavigation
8803
8813
  }, {
8804
8814
  "header-refs": [],
8805
- "onUpdate:modelValue": u[3] || (u[3] = (f) => l.$emit("update:model-value", f)),
8806
- onToggle: u[4] || (u[4] = (f) => l.$emit("toggle"))
8815
+ "onUpdate:modelValue": u[3] || (u[3] = (d) => l.$emit("update:model-value", d)),
8816
+ onToggle: u[4] || (u[4] = (d) => l.$emit("toggle"))
8807
8817
  }), Ze({
8808
8818
  "button-icon": ne(() => [
8809
8819
  l.$slots["calendar-icon"] ? q(l.$slots, "calendar-icon", { key: 0 }) : $("", !0),
@@ -8813,8 +8823,8 @@ const dh = (e, t, n, r) => {
8813
8823
  }, [
8814
8824
  l.$slots[e.slotName] ? {
8815
8825
  name: "item",
8816
- fn: ne(({ item: f }) => [
8817
- q(l.$slots, e.slotName, { item: f })
8826
+ fn: ne(({ item: d }) => [
8827
+ q(l.$slots, e.slotName, { item: d })
8818
8828
  ]),
8819
8829
  key: "0"
8820
8830
  } : void 0,
@@ -8851,7 +8861,7 @@ const dh = (e, t, n, r) => {
8851
8861
  },
8852
8862
  emits: ["update-month-year", "month-year-select", "mount", "reset-flow", "overlay-closed"],
8853
8863
  setup(e, { expose: t, emit: n }) {
8854
- const r = e, { defaults: a } = rt(r), { transitionName: o, showTransition: l } = Yr(a.value.transitions), { buildMatrix: u } = Ot(), { handleMonthYearChange: f, isDisabled: y, updateMonthYear: w } = fh(r, n), d = W(!1), s = W(!1), g = W([null, null, null, null]), C = W(null), S = W(null), F = W(null);
8864
+ const r = e, { defaults: a } = rt(r), { transitionName: o, showTransition: l } = Yr(a.value.transitions), { buildMatrix: u } = Ot(), { handleMonthYearChange: d, isDisabled: y, updateMonthYear: O } = fh(r, n), f = W(!1), s = W(!1), b = W([null, null, null, null]), C = W(null), S = W(null), F = W(null);
8855
8865
  et(() => {
8856
8866
  n("mount");
8857
8867
  });
@@ -8867,7 +8877,7 @@ const dh = (e, t, n, r) => {
8867
8877
  }, te = H(() => r.monthPicker ? Array.isArray(r.disabledDates) ? r.disabledDates.map((_) => I(_)).filter((_) => j(_)).map((_) => Te(_)) : [] : []), k = H(() => (_) => {
8868
8878
  const B = _ === "month";
8869
8879
  return {
8870
- showSelectionGrid: (B ? d : s).value,
8880
+ showSelectionGrid: (B ? f : s).value,
8871
8881
  items: (B ? z : i).value,
8872
8882
  disabledValues: a.value.filters[B ? "months" : "years"].concat(te.value),
8873
8883
  minValue: (B ? X : N).value,
@@ -8886,7 +8896,7 @@ const dh = (e, t, n, r) => {
8886
8896
  year: r.year,
8887
8897
  items: _ === "month" ? r.months : r.years,
8888
8898
  instance: r.instance,
8889
- updateMonthYear: w,
8899
+ updateMonthYear: O,
8890
8900
  toggle: _ === "month" ? D : U
8891
8901
  })), N = H(() => r.minDate ? De(I(r.minDate)) : null), K = H(() => r.maxDate ? De(I(r.maxDate)) : null), X = H(() => {
8892
8902
  if (r.minDate && N.value) {
@@ -8903,8 +8913,8 @@ const dh = (e, t, n, r) => {
8903
8913
  xe.push(he(Re));
8904
8914
  }
8905
8915
  return B ? xe.reverse() : xe;
8906
- }, b = H(() => r.months.find((B) => B.value === r.month) || { text: "", value: 0 }), z = H(() => Y(r.months)), i = H(() => Y(r.years, r.reverseYears)), v = H(() => a.value.multiCalendars ? r.multiCalendarsSolo ? !0 : r.instance === 0 : !0), T = H(() => a.value.multiCalendars ? r.multiCalendarsSolo ? !0 : r.instance === a.value.multiCalendars - 1 : !0), D = (_ = !1) => {
8907
- h(_), d.value = !d.value, d.value || n("overlay-closed");
8916
+ }, g = H(() => r.months.find((B) => B.value === r.month) || { text: "", value: 0 }), z = H(() => Y(r.months)), i = H(() => Y(r.years, r.reverseYears)), v = H(() => a.value.multiCalendars ? r.multiCalendarsSolo ? !0 : r.instance === 0 : !0), T = H(() => a.value.multiCalendars ? r.multiCalendarsSolo ? !0 : r.instance === a.value.multiCalendars - 1 : !0), D = (_ = !1) => {
8917
+ h(_), f.value = !f.value, f.value || n("overlay-closed");
8908
8918
  }, U = (_ = !1) => {
8909
8919
  h(_), s.value = !s.value, s.value || n("overlay-closed");
8910
8920
  }, h = (_) => {
@@ -8915,23 +8925,23 @@ const dh = (e, t, n, r) => {
8915
8925
  month: r.month,
8916
8926
  fromNav: !0
8917
8927
  });
8918
- }, ce = (_, B) => {
8919
- r.arrowNavigation && (g.value[B] = Ve(_), u(g.value, "monthYear"));
8928
+ }, fe = (_, B) => {
8929
+ r.arrowNavigation && (b.value[B] = He(_), u(b.value, "monthYear"));
8920
8930
  };
8921
8931
  return t({
8922
8932
  toggleMonthPicker: D,
8923
8933
  toggleYearPicker: U
8924
8934
  }), (_, B) => {
8925
8935
  var xe, he, ue, Re, tt;
8926
- return m(), O("div", Vh, [
8927
- _.$slots["month-year"] ? q(_.$slots, "month-year", nt(Be({ key: 0 }, { month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: c(w), handleMonthYearChange: c(f), instance: e.instance }))) : (m(), O(ve, { key: 1 }, [
8928
- !_.monthPicker && !_.yearPicker ? (m(), O(ve, { key: 0 }, [
8936
+ return m(), w("div", Vh, [
8937
+ _.$slots["month-year"] ? q(_.$slots, "month-year", nt(Be({ key: 0 }, { month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: c(O), handleMonthYearChange: c(d), instance: e.instance }))) : (m(), w(ve, { key: 1 }, [
8938
+ !_.monthPicker && !_.yearPicker ? (m(), w(ve, { key: 0 }, [
8929
8939
  c(v) && !_.vertical ? (m(), pe(ra, {
8930
8940
  key: 0,
8931
8941
  "aria-label": (xe = c(a).ariaLabels) == null ? void 0 : xe.prevMonth,
8932
8942
  disabled: c(y)(!1),
8933
- onActivate: B[0] || (B[0] = (se) => c(f)(!1)),
8934
- onSetRef: B[1] || (B[1] = (se) => ce(se, 0))
8943
+ onActivate: B[0] || (B[0] = (se) => c(d)(!1)),
8944
+ onSetRef: B[1] || (B[1] = (se) => fe(se, 0))
8935
8945
  }, {
8936
8946
  default: ne(() => [
8937
8947
  _.$slots["arrow-left"] ? q(_.$slots, "arrow-left", { key: 0 }) : $("", !0),
@@ -8949,12 +8959,12 @@ const dh = (e, t, n, r) => {
8949
8959
  "onUpdate:modelValue": B[2] || (B[2] = (se) => lt(V) ? V.value = se : null)
8950
8960
  }, c(k)("month"), {
8951
8961
  onToggle: D,
8952
- onSetRef: B[3] || (B[3] = (se) => ce(se, 1))
8962
+ onSetRef: B[3] || (B[3] = (se) => fe(se, 1))
8953
8963
  }), Ze({
8954
8964
  default: ne(() => [
8955
- _.$slots.month ? q(_.$slots, "month", nt(Be({ key: 0 }, c(b)))) : $("", !0),
8956
- _.$slots.month ? $("", !0) : (m(), O(ve, { key: 1 }, [
8957
- Ge(me(c(b).text), 1)
8965
+ _.$slots.month ? q(_.$slots, "month", nt(Be({ key: 0 }, c(g)))) : $("", !0),
8966
+ _.$slots.month ? $("", !0) : (m(), w(ve, { key: 1 }, [
8967
+ Ge(me(c(g).text), 1)
8958
8968
  ], 64))
8959
8969
  ]),
8960
8970
  _: 2
@@ -9000,14 +9010,14 @@ const dh = (e, t, n, r) => {
9000
9010
  "onUpdate:modelValue": B[4] || (B[4] = (se) => lt(R) ? R.value = se : null)
9001
9011
  }, c(k)("year"), {
9002
9012
  onToggle: U,
9003
- onSetRef: B[5] || (B[5] = (se) => ce(se, 2))
9013
+ onSetRef: B[5] || (B[5] = (se) => fe(se, 2))
9004
9014
  }), Ze({
9005
9015
  default: ne(() => [
9006
9016
  _.$slots.year ? q(_.$slots, "year", {
9007
9017
  key: 0,
9008
9018
  year: e.year
9009
9019
  }) : $("", !0),
9010
- _.$slots.year ? $("", !0) : (m(), O(ve, { key: 1 }, [
9020
+ _.$slots.year ? $("", !0) : (m(), w(ve, { key: 1 }, [
9011
9021
  Ge(me(e.year), 1)
9012
9022
  ], 64))
9013
9023
  ]),
@@ -9050,7 +9060,7 @@ const dh = (e, t, n, r) => {
9050
9060
  key: 1,
9051
9061
  "aria-label": (Re = c(a).ariaLabels) == null ? void 0 : Re.prevMonth,
9052
9062
  disabled: c(y)(!1),
9053
- onActivate: B[6] || (B[6] = (se) => c(f)(!1))
9063
+ onActivate: B[6] || (B[6] = (se) => c(d)(!1))
9054
9064
  }, {
9055
9065
  default: ne(() => [
9056
9066
  _.$slots["arrow-up"] ? q(_.$slots, "arrow-up", { key: 0 }) : $("", !0),
@@ -9063,8 +9073,8 @@ const dh = (e, t, n, r) => {
9063
9073
  ref: "rightIcon",
9064
9074
  disabled: c(y)(!0),
9065
9075
  "aria-label": (tt = c(a).ariaLabels) == null ? void 0 : tt.nextMonth,
9066
- onActivate: B[7] || (B[7] = (se) => c(f)(!0)),
9067
- onSetRef: B[8] || (B[8] = (se) => ce(se, 3))
9076
+ onActivate: B[7] || (B[7] = (se) => c(d)(!0)),
9077
+ onSetRef: B[8] || (B[8] = (se) => fe(se, 3))
9068
9078
  }, {
9069
9079
  default: ne(() => [
9070
9080
  _.$slots[_.vertical ? "arrow-down" : "arrow-right"] ? q(_.$slots, _.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : $("", !0),
@@ -9084,7 +9094,7 @@ const dh = (e, t, n, r) => {
9084
9094
  onSelected: B[18] || (B[18] = (se) => _.$emit("overlay-closed"))
9085
9095
  }), Ze({
9086
9096
  header: ne(() => {
9087
- var se, fe, ke;
9097
+ var se, de, ke;
9088
9098
  return [
9089
9099
  E("div", Fh, [
9090
9100
  E("div", {
@@ -9093,7 +9103,7 @@ const dh = (e, t, n, r) => {
9093
9103
  ref_key: "mpPrevIconRef",
9094
9104
  ref: C,
9095
9105
  onClick: B[9] || (B[9] = (be) => G(!1)),
9096
- onKeydown: B[10] || (B[10] = de((be) => G(!1), ["enter"]))
9106
+ onKeydown: B[10] || (B[10] = ce((be) => G(!1), ["enter"]))
9097
9107
  }, [
9098
9108
  E("div", {
9099
9109
  class: ye(["dp__inner_nav", { dp__inner_nav_disabled: c(y)(!1) }]),
@@ -9109,16 +9119,16 @@ const dh = (e, t, n, r) => {
9109
9119
  role: "button",
9110
9120
  ref_key: "mpYearButtonRef",
9111
9121
  ref: S,
9112
- "aria-label": (fe = c(a).ariaLabels) == null ? void 0 : fe.openYearsOverlay,
9122
+ "aria-label": (de = c(a).ariaLabels) == null ? void 0 : de.openYearsOverlay,
9113
9123
  tabindex: "0",
9114
9124
  onClick: B[11] || (B[11] = () => U(!1)),
9115
- onKeydown: B[12] || (B[12] = de(() => U(!1), ["enter"]))
9125
+ onKeydown: B[12] || (B[12] = ce(() => U(!1), ["enter"]))
9116
9126
  }, [
9117
9127
  _.$slots.year ? q(_.$slots, "year", {
9118
9128
  key: 0,
9119
9129
  year: e.year
9120
9130
  }) : $("", !0),
9121
- _.$slots.year ? $("", !0) : (m(), O(ve, { key: 1 }, [
9131
+ _.$slots.year ? $("", !0) : (m(), w(ve, { key: 1 }, [
9122
9132
  Ge(me(e.year), 1)
9123
9133
  ], 64))
9124
9134
  ], 40, jh),
@@ -9128,7 +9138,7 @@ const dh = (e, t, n, r) => {
9128
9138
  ref_key: "mpNextIconRef",
9129
9139
  ref: F,
9130
9140
  onClick: B[13] || (B[13] = (be) => G(!0)),
9131
- onKeydown: B[14] || (B[14] = de((be) => G(!0), ["enter"]))
9141
+ onKeydown: B[14] || (B[14] = ce((be) => G(!0), ["enter"]))
9132
9142
  }, [
9133
9143
  E("div", {
9134
9144
  class: ye(["dp__inner_nav", { dp__inner_nav_disabled: c(y)(!0) }]),
@@ -9235,15 +9245,15 @@ const dh = (e, t, n, r) => {
9235
9245
  "overlay-closed"
9236
9246
  ],
9237
9247
  setup(e, { expose: t, emit: n }) {
9238
- const r = e, { setTimePickerElements: a, setTimePickerBackRef: o } = Ot(), { defaults: l } = rt(r), { transitionName: u, showTransition: f } = Yr(l.value.transitions), y = Gt({
9248
+ const r = e, { setTimePickerElements: a, setTimePickerBackRef: o } = Ot(), { defaults: l } = rt(r), { transitionName: u, showTransition: d } = Yr(l.value.transitions), y = Gt({
9239
9249
  hours: !1,
9240
9250
  minutes: !1,
9241
9251
  seconds: !1
9242
- }), w = W("AM"), d = W(null), s = W([]);
9252
+ }), O = W("AM"), f = W(null), s = W([]);
9243
9253
  et(() => {
9244
9254
  n("mounted");
9245
9255
  });
9246
- const g = H(() => (i) => !!(r.maxTime && r.maxTime[i] && r.maxTime[i] < r[i] + +r[`${i}Increment`])), C = H(() => (i) => !!(r.minTime && r.minTime[i] && r.minTime[i] > r[i] - +r[`${i}Increment`])), S = (i, v) => gi(qe(I(), i), v), F = (i, v) => Im(qe(I(), i), v), M = H(
9256
+ const b = H(() => (i) => !!(r.maxTime && r.maxTime[i] && r.maxTime[i] < r[i] + +r[`${i}Increment`])), C = H(() => (i) => !!(r.minTime && r.minTime[i] && r.minTime[i] > r[i] - +r[`${i}Increment`])), S = (i, v) => gi(qe(I(), i), v), F = (i, v) => Im(qe(I(), i), v), M = H(
9247
9257
  () => ({
9248
9258
  dp__time_col: !0,
9249
9259
  dp__time_col_reg: !r.enableSeconds && r.is24,
@@ -9272,52 +9282,52 @@ const dh = (e, t, n, r) => {
9272
9282
  N(i) || (y[i] = !y[i], y[i] || n("overlay-closed"));
9273
9283
  }, X = (i) => i === "hours" ? pt : i === "minutes" ? yt : Yt, L = (i, v = !0) => {
9274
9284
  const T = v ? S : F;
9275
- (v ? g.value(i) : C.value(i)) || n(
9285
+ (v ? b.value(i) : C.value(i)) || n(
9276
9286
  `update:${i}`,
9277
9287
  X(i)(T({ [i]: +r[i] }, { [i]: +r[`${i}Increment`] }))
9278
9288
  );
9279
- }, Q = (i) => r.is24 ? i : (i >= 12 ? w.value = "PM" : w.value = "AM", th(i)), le = () => {
9280
- w.value === "PM" ? (w.value = "AM", n("update:hours", r.hours - 12)) : (w.value = "PM", n("update:hours", r.hours + 12));
9289
+ }, Q = (i) => r.is24 ? i : (i >= 12 ? O.value = "PM" : O.value = "AM", th(i)), le = () => {
9290
+ O.value === "PM" ? (O.value = "AM", n("update:hours", r.hours - 12)) : (O.value = "PM", n("update:hours", r.hours + 12));
9281
9291
  }, Y = (i) => {
9282
9292
  y[i] = !0;
9283
- }, b = (i, v, T) => {
9293
+ }, g = (i, v, T) => {
9284
9294
  if (i && r.arrowNavigation) {
9285
9295
  Array.isArray(s.value[v]) ? s.value[v][T] = i : s.value[v] = [i];
9286
9296
  const D = s.value.reduce(
9287
- (U, h) => h.map((G, ce) => [...U[ce] || [], h[ce]]),
9297
+ (U, h) => h.map((G, fe) => [...U[fe] || [], h[fe]]),
9288
9298
  []
9289
9299
  );
9290
- o(r.closeTimePickerBtn), d.value && (D[1] = D[1].concat(d.value)), a(D, r.order);
9300
+ o(r.closeTimePickerBtn), f.value && (D[1] = D[1].concat(f.value)), a(D, r.order);
9291
9301
  }
9292
- }, z = (i, v) => i === "hours" && !r.is24 ? n(`update:${i}`, w.value === "PM" ? v + 12 : v) : n(`update:${i}`, v);
9302
+ }, z = (i, v) => i === "hours" && !r.is24 ? n(`update:${i}`, O.value === "PM" ? v + 12 : v) : n(`update:${i}`, v);
9293
9303
  return t({ openChildCmp: Y }), (i, v) => {
9294
9304
  var T;
9295
- return i.disabled ? $("", !0) : (m(), O("div", Kh, [
9296
- (m(!0), O(ve, null, Ae(c(V), (D, U) => {
9297
- var h, G, ce;
9298
- return m(), O("div", {
9305
+ return i.disabled ? $("", !0) : (m(), w("div", Kh, [
9306
+ (m(!0), w(ve, null, Ae(c(V), (D, U) => {
9307
+ var h, G, fe;
9308
+ return m(), w("div", {
9299
9309
  key: U,
9300
9310
  class: ye(c(M))
9301
9311
  }, [
9302
- D.separator ? (m(), O(ve, { key: 0 }, [
9312
+ D.separator ? (m(), w(ve, { key: 0 }, [
9303
9313
  Ge(" : ")
9304
- ], 64)) : (m(), O(ve, { key: 1 }, [
9314
+ ], 64)) : (m(), w(ve, { key: 1 }, [
9305
9315
  E("div", {
9306
9316
  class: ye({
9307
9317
  dp__inc_dec_button: !0,
9308
- dp__inc_dec_button_disabled: c(g)(D.type)
9318
+ dp__inc_dec_button_disabled: c(b)(D.type)
9309
9319
  }),
9310
9320
  role: "button",
9311
9321
  "data-test": "time-inc-btn",
9312
9322
  "aria-label": (h = c(l).ariaLabels) == null ? void 0 : h.incrementValue(D.type),
9313
9323
  tabindex: "0",
9314
9324
  onKeydown: [
9315
- de((_) => L(D.type), ["enter"]),
9316
- de((_) => L(D.type), ["space"])
9325
+ ce((_) => L(D.type), ["enter"]),
9326
+ ce((_) => L(D.type), ["space"])
9317
9327
  ],
9318
9328
  onClick: (_) => L(D.type),
9319
9329
  ref_for: !0,
9320
- ref: (_) => b(_, U, 0)
9330
+ ref: (_) => g(_, U, 0)
9321
9331
  }, [
9322
9332
  i.$slots["arrow-up"] ? q(i.$slots, "arrow-up", { key: 0 }) : $("", !0),
9323
9333
  i.$slots["arrow-up"] ? $("", !0) : (m(), pe(c(Fi), { key: 1 }))
@@ -9329,19 +9339,19 @@ const dh = (e, t, n, r) => {
9329
9339
  tabindex: "0",
9330
9340
  "data-test": `${D.type}-toggle-overlay-btn`,
9331
9341
  onKeydown: [
9332
- de((_) => K(D.type), ["enter"]),
9333
- de((_) => K(D.type), ["space"])
9342
+ ce((_) => K(D.type), ["enter"]),
9343
+ ce((_) => K(D.type), ["space"])
9334
9344
  ],
9335
9345
  onClick: (_) => K(D.type),
9336
9346
  ref_for: !0,
9337
- ref: (_) => b(_, U, 1)
9347
+ ref: (_) => g(_, U, 1)
9338
9348
  }, [
9339
9349
  i.$slots[D.type] ? q(i.$slots, D.type, {
9340
9350
  key: 0,
9341
9351
  text: c(j)(D.type).text,
9342
9352
  value: c(j)(D.type).value
9343
9353
  }) : $("", !0),
9344
- i.$slots[D.type] ? $("", !0) : (m(), O(ve, { key: 1 }, [
9354
+ i.$slots[D.type] ? $("", !0) : (m(), w(ve, { key: 1 }, [
9345
9355
  Ge(me(c(j)(D.type).text), 1)
9346
9356
  ], 64))
9347
9357
  ], 42, Qh),
@@ -9352,15 +9362,15 @@ const dh = (e, t, n, r) => {
9352
9362
  }),
9353
9363
  role: "button",
9354
9364
  "data-test": "time-dec-btn",
9355
- "aria-label": (ce = c(l).ariaLabels) == null ? void 0 : ce.decrementValue(D.type),
9365
+ "aria-label": (fe = c(l).ariaLabels) == null ? void 0 : fe.decrementValue(D.type),
9356
9366
  tabindex: "0",
9357
9367
  onKeydown: [
9358
- de((_) => L(D.type, !1), ["enter"]),
9359
- de((_) => L(D.type, !1), ["space"])
9368
+ ce((_) => L(D.type, !1), ["enter"]),
9369
+ ce((_) => L(D.type, !1), ["space"])
9360
9370
  ],
9361
9371
  onClick: (_) => L(D.type, !1),
9362
9372
  ref_for: !0,
9363
- ref: (_) => b(_, U, 2)
9373
+ ref: (_) => g(_, U, 2)
9364
9374
  }, [
9365
9375
  i.$slots["arrow-down"] ? q(i.$slots, "arrow-down", { key: 0 }) : $("", !0),
9366
9376
  i.$slots["arrow-down"] ? $("", !0) : (m(), pe(c(Wi), { key: 1 }))
@@ -9368,16 +9378,16 @@ const dh = (e, t, n, r) => {
9368
9378
  ], 64))
9369
9379
  ], 2);
9370
9380
  }), 128)),
9371
- i.is24 ? $("", !0) : (m(), O("div", Gh, [
9381
+ i.is24 ? $("", !0) : (m(), w("div", Gh, [
9372
9382
  i.$slots["am-pm-button"] ? q(i.$slots, "am-pm-button", {
9373
9383
  key: 0,
9374
9384
  toggle: le,
9375
- value: w.value
9385
+ value: O.value
9376
9386
  }) : $("", !0),
9377
- i.$slots["am-pm-button"] ? $("", !0) : (m(), O("button", {
9387
+ i.$slots["am-pm-button"] ? $("", !0) : (m(), w("button", {
9378
9388
  key: 1,
9379
9389
  ref_key: "amPmButton",
9380
- ref: d,
9390
+ ref: f,
9381
9391
  type: "button",
9382
9392
  class: "dp__pm_am_button",
9383
9393
  role: "button",
@@ -9385,15 +9395,15 @@ const dh = (e, t, n, r) => {
9385
9395
  tabindex: "0",
9386
9396
  onClick: le,
9387
9397
  onKeydown: [
9388
- de(We(le, ["prevent"]), ["enter"]),
9389
- de(We(le, ["prevent"]), ["space"])
9398
+ ce(Ye(le, ["prevent"]), ["enter"]),
9399
+ ce(Ye(le, ["prevent"]), ["space"])
9390
9400
  ]
9391
- }, me(w.value), 41, Jh))
9401
+ }, me(O.value), 41, Jh))
9392
9402
  ])),
9393
- (m(!0), O(ve, null, Ae(c(R), (D, U) => (m(), pe(Je, {
9403
+ (m(!0), w(ve, null, Ae(c(R), (D, U) => (m(), pe(Je, {
9394
9404
  key: U,
9395
9405
  name: c(u)(y[D.type]),
9396
- css: c(f)
9406
+ css: c(d)
9397
9407
  }, {
9398
9408
  default: ne(() => [
9399
9409
  y[D.type] ? (m(), pe(Zt, {
@@ -9453,9 +9463,9 @@ const dh = (e, t, n, r) => {
9453
9463
  "overlay-closed"
9454
9464
  ],
9455
9465
  setup(e, { expose: t, emit: n }) {
9456
- const r = e, { buildMatrix: a, setTimePicker: o } = Ot(), l = Er(), { hideNavigationButtons: u, defaults: f } = rt(r), { transitionName: y, showTransition: w } = Yr(f.value.transitions), d = W(null), s = W(null), g = W([]), C = W(null);
9466
+ const r = e, { buildMatrix: a, setTimePicker: o } = Ot(), l = Er(), { hideNavigationButtons: u, defaults: d } = rt(r), { transitionName: y, showTransition: O } = Yr(d.value.transitions), f = W(null), s = W(null), b = W([]), C = W(null);
9457
9467
  et(() => {
9458
- n("mount"), !r.timePicker && r.arrowNavigation ? a([Ve(d.value)], "time") : o(!0, r.timePicker);
9468
+ n("mount"), !r.timePicker && r.arrowNavigation ? a([He(f.value)], "time") : o(!0, r.timePicker);
9459
9469
  });
9460
9470
  const S = H(() => r.range && r.modelAuto ? Xi(r.internalModelValue) : !0), F = W(!1), M = (L) => ({
9461
9471
  hours: Array.isArray(r.hours) ? r.hours[L] : r.hours,
@@ -9471,7 +9481,7 @@ const dh = (e, t, n, r) => {
9471
9481
  return L;
9472
9482
  }), R = (L, Q = !1, le = "") => {
9473
9483
  Q || n("reset-flow"), F.value = L, r.arrowNavigation && (o(L), L || n("overlay-closed")), Mt(() => {
9474
- le !== "" && g.value[0] && g.value[0].openChildCmp(le);
9484
+ le !== "" && b.value[0] && b.value[0].openChildCmp(le);
9475
9485
  });
9476
9486
  }, j = H(() => ({
9477
9487
  dp__button: !0,
@@ -9487,19 +9497,19 @@ const dh = (e, t, n, r) => {
9487
9497
  };
9488
9498
  return t({ toggleTimePicker: R }), (L, Q) => {
9489
9499
  var le;
9490
- return m(), O("div", null, [
9491
- L.timePicker ? $("", !0) : Ye((m(), O("div", {
9500
+ return m(), w("div", null, [
9501
+ L.timePicker ? $("", !0) : Ue((m(), w("div", {
9492
9502
  key: 0,
9493
9503
  class: ye(c(j)),
9494
9504
  role: "button",
9495
- "aria-label": (le = c(f).ariaLabels) == null ? void 0 : le.openTimePicker,
9505
+ "aria-label": (le = c(d).ariaLabels) == null ? void 0 : le.openTimePicker,
9496
9506
  tabindex: "0",
9497
9507
  "data-test": "open-time-picker-btn",
9498
9508
  ref_key: "openTimePickerBtn",
9499
- ref: d,
9509
+ ref: f,
9500
9510
  onKeydown: [
9501
- Q[0] || (Q[0] = de((Y) => R(!0), ["enter"])),
9502
- Q[1] || (Q[1] = de((Y) => R(!0), ["space"]))
9511
+ Q[0] || (Q[0] = ce((Y) => R(!0), ["enter"])),
9512
+ Q[1] || (Q[1] = ce((Y) => R(!0), ["space"]))
9503
9513
  ],
9504
9514
  onClick: Q[2] || (Q[2] = (Y) => R(!0))
9505
9515
  }, [
@@ -9510,12 +9520,12 @@ const dh = (e, t, n, r) => {
9510
9520
  ]),
9511
9521
  Ce(Je, {
9512
9522
  name: c(y)(F.value),
9513
- css: c(w)
9523
+ css: c(O)
9514
9524
  }, {
9515
9525
  default: ne(() => {
9516
9526
  var Y;
9517
9527
  return [
9518
- F.value || L.timePicker ? (m(), O("div", {
9528
+ F.value || L.timePicker ? (m(), w("div", {
9519
9529
  key: 0,
9520
9530
  class: "dp__overlay",
9521
9531
  ref_key: "overlayRef",
@@ -9532,19 +9542,19 @@ const dh = (e, t, n, r) => {
9532
9542
  setMinutes: N,
9533
9543
  setSeconds: K
9534
9544
  }) : $("", !0),
9535
- L.$slots["time-picker-overlay"] ? $("", !0) : (m(), O("div", r0, [
9536
- (m(!0), O(ve, null, Ae(c(V), (b, z) => Ye((m(), pe(e0, Be({ key: z }, {
9545
+ L.$slots["time-picker-overlay"] ? $("", !0) : (m(), w("div", r0, [
9546
+ (m(!0), w(ve, null, Ae(c(V), (g, z) => Ue((m(), pe(e0, Be({ key: z }, {
9537
9547
  ...L.$props,
9538
9548
  order: z,
9539
- hours: b.hours,
9540
- minutes: b.minutes,
9541
- seconds: b.seconds,
9549
+ hours: g.hours,
9550
+ minutes: g.minutes,
9551
+ seconds: g.seconds,
9542
9552
  closeTimePickerBtn: s.value,
9543
9553
  disabled: z === 0 ? L.fixedStart : L.fixedEnd
9544
9554
  }, {
9545
9555
  ref_for: !0,
9546
9556
  ref_key: "timeInputRefs",
9547
- ref: g,
9557
+ ref: b,
9548
9558
  "onUpdate:hours": (i) => P(k(i, z, "hours")),
9549
9559
  "onUpdate:minutes": (i) => N(k(i, z, "minutes")),
9550
9560
  "onUpdate:seconds": (i) => K(k(i, z, "seconds")),
@@ -9561,19 +9571,19 @@ const dh = (e, t, n, r) => {
9561
9571
  [bt, z === 0 ? !0 : c(S)]
9562
9572
  ])), 128))
9563
9573
  ])),
9564
- L.timePicker ? $("", !0) : Ye((m(), O("div", {
9574
+ L.timePicker ? $("", !0) : Ue((m(), w("div", {
9565
9575
  key: 2,
9566
9576
  ref_key: "closeTimePickerBtn",
9567
9577
  ref: s,
9568
9578
  class: ye(c(j)),
9569
9579
  role: "button",
9570
- "aria-label": (Y = c(f).ariaLabels) == null ? void 0 : Y.closeTimePicker,
9580
+ "aria-label": (Y = c(d).ariaLabels) == null ? void 0 : Y.closeTimePicker,
9571
9581
  tabindex: "0",
9572
9582
  onKeydown: [
9573
- Q[3] || (Q[3] = de((b) => R(!1), ["enter"])),
9574
- Q[4] || (Q[4] = de((b) => R(!1), ["space"]))
9583
+ Q[3] || (Q[3] = ce((g) => R(!1), ["enter"])),
9584
+ Q[4] || (Q[4] = ce((g) => R(!1), ["space"]))
9575
9585
  ],
9576
- onClick: Q[5] || (Q[5] = (b) => R(!1))
9586
+ onClick: Q[5] || (Q[5] = (g) => R(!1))
9577
9587
  }, [
9578
9588
  L.$slots["calendar-icon"] ? q(L.$slots, "calendar-icon", { key: 0 }) : $("", !0),
9579
9589
  L.$slots["calendar-icon"] ? $("", !0) : (m(), pe(c(Br), { key: 1 }))
@@ -9592,15 +9602,15 @@ const dh = (e, t, n, r) => {
9592
9602
  }), l0 = (e, t) => {
9593
9603
  const { isDisabled: n, matchDate: r, getWeekFromDate: a } = rt(t), o = W(null), l = W(I()), u = (i) => {
9594
9604
  !i.current && t.hideOffsetDates || (o.value = i.value);
9595
- }, f = () => {
9605
+ }, d = () => {
9596
9606
  o.value = null;
9597
- }, y = (i) => Array.isArray(e.value) && t.range && e.value[0] && o.value ? i ? Xe(o.value, e.value[0]) : Fe(o.value, e.value[0]) : !0, w = (i, v) => {
9607
+ }, y = (i) => Array.isArray(e.value) && t.range && e.value[0] && o.value ? i ? Xe(o.value, e.value[0]) : We(o.value, e.value[0]) : !0, O = (i, v) => {
9598
9608
  const T = () => e.value ? v ? e.value[0] || null : e.value[1] : null, D = e.value && Array.isArray(e.value) ? T() : null;
9599
9609
  return Se(I(i.value), D);
9600
- }, d = (i) => {
9610
+ }, f = (i) => {
9601
9611
  const v = Array.isArray(e.value) ? e.value[0] : null;
9602
- return i ? !Fe(o.value || null, v) : !0;
9603
- }, s = (i, v = !0) => (t.range || t.weekPicker) && Array.isArray(e.value) ? t.hideOffsetDates && !i.current ? !1 : Se(I(i.value), e.value[v ? 0 : 1]) : t.range ? w(i, v) && d(v) || Se(i.value, Array.isArray(e.value) ? e.value[0] : null) && y(v) : !1, g = (i, v, T) => Array.isArray(e.value) && e.value[0] && e.value.length === 1 ? i ? !1 : T ? Xe(e.value[0], v.value) : Fe(e.value[0], v.value) : !1, C = (i) => !e.value || t.hideOffsetDates && !i.current ? !1 : t.range ? t.modelAuto && Array.isArray(e.value) ? Se(i.value, e.value[0] ? e.value[0] : l.value) : !1 : t.multiDates && Array.isArray(e.value) ? e.value.some((v) => Se(v, i.value)) : Se(i.value, e.value ? e.value : l.value), S = (i) => {
9612
+ return i ? !We(o.value || null, v) : !0;
9613
+ }, s = (i, v = !0) => (t.range || t.weekPicker) && Array.isArray(e.value) ? t.hideOffsetDates && !i.current ? !1 : Se(I(i.value), e.value[v ? 0 : 1]) : t.range ? O(i, v) && f(v) || Se(i.value, Array.isArray(e.value) ? e.value[0] : null) && y(v) : !1, b = (i, v, T) => Array.isArray(e.value) && e.value[0] && e.value.length === 1 ? i ? !1 : T ? Xe(e.value[0], v.value) : We(e.value[0], v.value) : !1, C = (i) => !e.value || t.hideOffsetDates && !i.current ? !1 : t.range ? t.modelAuto && Array.isArray(e.value) ? Se(i.value, e.value[0] ? e.value[0] : l.value) : !1 : t.multiDates && Array.isArray(e.value) ? e.value.some((v) => Se(v, i.value)) : Se(i.value, e.value ? e.value : l.value), S = (i) => {
9604
9614
  if (t.autoRange || t.weekPicker) {
9605
9615
  if (o.value) {
9606
9616
  if (t.hideOffsetDates && !i.current)
@@ -9618,7 +9628,7 @@ const dh = (e, t, n, r) => {
9618
9628
  if (t.hideOffsetDates && !i.current)
9619
9629
  return !1;
9620
9630
  const T = a(I(o.value));
9621
- return t.weekPicker ? Xe(i.value, T[0]) && Fe(i.value, T[1]) : Xe(i.value, o.value) && Fe(i.value, v);
9631
+ return t.weekPicker ? Xe(i.value, T[0]) && We(i.value, T[1]) : Xe(i.value, o.value) && We(i.value, v);
9622
9632
  }
9623
9633
  return !1;
9624
9634
  }
@@ -9651,23 +9661,23 @@ const dh = (e, t, n, r) => {
9651
9661
  dp__date_hover: te(i)
9652
9662
  }), le = (i) => ({
9653
9663
  ...Y(i),
9654
- ...b(i),
9664
+ ...g(i),
9655
9665
  dp__range_between_week: X(i) && t.weekPicker
9656
9666
  }), Y = (i) => ({
9657
9667
  dp__range_start: t.multiCalendars > 0 ? i.current && s(i) && j() : s(i) && j(),
9658
9668
  dp__range_end: t.multiCalendars > 0 ? i.current && s(i, !1) && j() : s(i, !1) && j(),
9659
9669
  dp__range_between: X(i) && !t.weekPicker,
9660
- dp__date_hover_start: g(te(i), i, !0),
9661
- dp__date_hover_end: g(te(i), i, !1)
9662
- }), b = (i) => ({
9670
+ dp__date_hover_start: b(te(i), i, !0),
9671
+ dp__date_hover_end: b(te(i), i, !1)
9672
+ }), g = (i) => ({
9663
9673
  ...Y(i),
9664
9674
  dp__cell_auto_range: F(i),
9665
9675
  dp__cell_auto_range_start: M(i),
9666
9676
  dp__cell_auto_range_end: S(i)
9667
- }), z = (i) => t.range ? t.autoRange ? b(i) : t.modelAuto ? { ...Q(i), ...Y(i) } : Y(i) : t.weekPicker ? le(i) : Q(i);
9677
+ }), z = (i) => t.range ? t.autoRange ? g(i) : t.modelAuto ? { ...Q(i), ...Y(i) } : Y(i) : t.weekPicker ? le(i) : Q(i);
9668
9678
  return {
9669
9679
  setHoverDate: u,
9670
- clearHoverDate: f,
9680
+ clearHoverDate: d,
9671
9681
  getDayClassData: (i) => ({
9672
9682
  ...L(i),
9673
9683
  ...z(i),
@@ -9706,15 +9716,15 @@ const dh = (e, t, n, r) => {
9706
9716
  "recalculate-position"
9707
9717
  ],
9708
9718
  setup(e, { expose: t, emit: n }) {
9709
- const r = e, { setMenuFocused: a, setShiftKey: o, control: l } = zi(), { getCalendarDays: u, defaults: f } = rt(r), y = Er(), w = W(null), d = Gt({
9719
+ const r = e, { setMenuFocused: a, setShiftKey: o, control: l } = zi(), { getCalendarDays: u, defaults: d } = rt(r), y = Er(), O = W(null), f = Gt({
9710
9720
  timePicker: !!(!r.enableTimePicker || r.timePicker || r.monthPicker),
9711
9721
  monthYearInput: !!r.timePicker,
9712
9722
  calendar: !1
9713
- }), s = W([]), g = W([]), C = W(null), S = W(null), F = W(0), M = W(!1), V = W(0);
9723
+ }), s = W([]), b = W([]), C = W(null), S = W(null), F = W(0), M = W(!1), V = W(0);
9714
9724
  et(() => {
9715
9725
  var x;
9716
9726
  M.value = !0, !((x = r.presetRanges) != null && x.length) && !y["left-sidebar"] && !y["right-sidebar"] && dt();
9717
- const Z = Ve(S);
9727
+ const Z = He(S);
9718
9728
  if (Z && !r.textInput && !r.inline && (a(!0), N()), Z) {
9719
9729
  const je = (Qe) => {
9720
9730
  !r.monthYearComponent && !r.timePickerComponent && !Object.keys(y).length && Qe.preventDefault(), Qe.stopImmediatePropagation(), Qe.stopPropagation();
@@ -9726,14 +9736,14 @@ const dh = (e, t, n, r) => {
9726
9736
  window.removeEventListener("resize", dt);
9727
9737
  });
9728
9738
  const { arrowRight: R, arrowLeft: j, arrowDown: te, arrowUp: k } = Ot(), P = (x) => {
9729
- x || x === 0 ? g.value[x].triggerTransition(
9739
+ x || x === 0 ? b.value[x].triggerTransition(
9730
9740
  le.value(x),
9731
9741
  Y.value(x)
9732
- ) : g.value.forEach(
9742
+ ) : b.value.forEach(
9733
9743
  (Z, je) => Z.triggerTransition(le.value(je), Y.value(je))
9734
9744
  );
9735
9745
  }, N = () => {
9736
- const x = Ve(S);
9746
+ const x = He(S);
9737
9747
  x && x.focus({ preventScroll: !0 });
9738
9748
  }, K = () => {
9739
9749
  var x;
@@ -9745,7 +9755,7 @@ const dh = (e, t, n, r) => {
9745
9755
  modelValue: Q,
9746
9756
  month: le,
9747
9757
  year: Y,
9748
- time: b,
9758
+ time: g,
9749
9759
  updateTime: z,
9750
9760
  updateMonthYear: i,
9751
9761
  selectDate: v,
@@ -9754,7 +9764,7 @@ const dh = (e, t, n, r) => {
9754
9764
  handleScroll: U,
9755
9765
  handleArrow: h,
9756
9766
  handleSwipe: G,
9757
- getMarker: ce,
9767
+ getMarker: fe,
9758
9768
  selectCurrentDate: _,
9759
9769
  presetDateRange: B
9760
9770
  } = sh(r, n, K, P, V), { setHoverDate: xe, clearHoverDate: he, getDayClassData: ue } = l0(Q, r);
@@ -9767,19 +9777,19 @@ const dh = (e, t, n, r) => {
9767
9777
  },
9768
9778
  { deep: !0 }
9769
9779
  );
9770
- const Re = xt(y, "calendar"), tt = xt(y, "action"), se = xt(y, "timePicker"), fe = xt(y, "monthYear"), ke = H(() => r.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), be = H(() => Jv(r.yearRange)), Ut = H(() => eh(r.locale, r.monthNameFormat)), dt = () => {
9771
- const x = Ve(w);
9780
+ const Re = xt(y, "calendar"), tt = xt(y, "action"), se = xt(y, "timePicker"), de = xt(y, "monthYear"), ke = H(() => r.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), be = H(() => Jv(r.yearRange)), Ut = H(() => eh(r.locale, r.monthNameFormat)), dt = () => {
9781
+ const x = He(O);
9772
9782
  x && (F.value = x.getBoundingClientRect().width);
9773
9783
  }, Lt = H(() => (x) => u(le.value(x), Y.value(x))), kt = H(
9774
- () => f.value.multiCalendars > 0 && r.range ? [...Array(f.value.multiCalendars).keys()] : [0]
9784
+ () => d.value.multiCalendars > 0 && r.range ? [...Array(d.value.multiCalendars).keys()] : [0]
9775
9785
  ), Vt = H(
9776
9786
  () => (x) => x === 1
9777
9787
  ), Ur = H(() => r.monthPicker || r.timePicker || r.yearPicker), Lr = H(
9778
9788
  () => ({
9779
- dp__flex_display: f.value.multiCalendars > 0
9789
+ dp__flex_display: d.value.multiCalendars > 0
9780
9790
  })
9781
9791
  ), en = H(() => ({
9782
- dp__instance_calendar: f.value.multiCalendars > 0
9792
+ dp__instance_calendar: d.value.multiCalendars > 0
9783
9793
  })), Ht = H(() => ({
9784
9794
  dp__menu_disabled: r.disabled,
9785
9795
  dp__menu_readonly: r.readonly
@@ -9794,7 +9804,7 @@ const dh = (e, t, n, r) => {
9794
9804
  })
9795
9805
  ), Fr = (x, Z) => x.value(Z).map((je) => ({
9796
9806
  ...je,
9797
- days: je.days.map((Qe) => (Qe.marker = ce(Qe), Qe.classData = ue(Qe), Qe))
9807
+ days: je.days.map((Qe) => (Qe.marker = fe(Qe), Qe.classData = ue(Qe), Qe))
9798
9808
  })), tn = (x) => {
9799
9809
  x.stopPropagation(), x.stopImmediatePropagation();
9800
9810
  }, p = () => {
@@ -9803,7 +9813,7 @@ const dh = (e, t, n, r) => {
9803
9813
  v(x, Z), r.spaceConfirm && n("select-date");
9804
9814
  }, ee = (x) => {
9805
9815
  var Z;
9806
- (Z = r.flow) != null && Z.length && (d[x] = !0, Object.keys(d).filter((je) => !d[je]).length || $e());
9816
+ (Z = r.flow) != null && Z.length && (f[x] = !0, Object.keys(f).filter((je) => !f[je]).length || $e());
9807
9817
  }, re = (x, Z, je, Qe, ...nn) => {
9808
9818
  if (r.flow[V.value] === x) {
9809
9819
  const ae = Qe ? Z.value[0] : Z.value;
@@ -9834,7 +9844,7 @@ const dh = (e, t, n, r) => {
9834
9844
  var je;
9835
9845
  return m(), pe(Je, {
9836
9846
  appear: "",
9837
- name: (je = c(f).transitions) == null ? void 0 : je.menuAppear,
9847
+ name: (je = c(d).transitions) == null ? void 0 : je.menuAppear,
9838
9848
  mode: "out-in",
9839
9849
  css: !!x.transitions
9840
9850
  }, {
@@ -9851,19 +9861,19 @@ const dh = (e, t, n, r) => {
9851
9861
  onMouseleave: Z[12] || (Z[12] = (...ae) => c(he) && c(he)(...ae)),
9852
9862
  onClick: tn,
9853
9863
  onKeydown: [
9854
- de(p, ["esc"]),
9855
- Z[13] || (Z[13] = de(We((ae) => ot("left"), ["prevent"]), ["left"])),
9856
- Z[14] || (Z[14] = de(We((ae) => ot("up"), ["prevent"]), ["up"])),
9857
- Z[15] || (Z[15] = de(We((ae) => ot("down"), ["prevent"]), ["down"])),
9858
- Z[16] || (Z[16] = de(We((ae) => ot("right"), ["prevent"]), ["right"])),
9864
+ ce(p, ["esc"]),
9865
+ Z[13] || (Z[13] = ce(Ye((ae) => ot("left"), ["prevent"]), ["left"])),
9866
+ Z[14] || (Z[14] = ce(Ye((ae) => ot("up"), ["prevent"]), ["up"])),
9867
+ Z[15] || (Z[15] = ce(Ye((ae) => ot("down"), ["prevent"]), ["down"])),
9868
+ Z[16] || (Z[16] = ce(Ye((ae) => ot("right"), ["prevent"]), ["right"])),
9859
9869
  Pt
9860
9870
  ]
9861
9871
  }, [
9862
- (x.disabled || x.readonly) && x.inline ? (m(), O("div", {
9872
+ (x.disabled || x.readonly) && x.inline ? (m(), w("div", {
9863
9873
  key: 0,
9864
9874
  class: ye(c(Ht))
9865
9875
  }, null, 2)) : $("", !0),
9866
- !x.inline && !x.teleportCenter ? (m(), O("div", {
9876
+ !x.inline && !x.teleportCenter ? (m(), w("div", {
9867
9877
  key: 1,
9868
9878
  class: ye(c(ke))
9869
9879
  }, null, 2)) : $("", !0),
@@ -9872,11 +9882,11 @@ const dh = (e, t, n, r) => {
9872
9882
  dp__menu_content_wrapper: ((Qe = x.presetRanges) == null ? void 0 : Qe.length) || !!x.$slots["left-sidebar"] || !!x.$slots["right-sidebar"]
9873
9883
  })
9874
9884
  }, [
9875
- x.$slots["left-sidebar"] ? (m(), O("div", u0, [
9885
+ x.$slots["left-sidebar"] ? (m(), w("div", u0, [
9876
9886
  q(x.$slots, "left-sidebar")
9877
9887
  ])) : $("", !0),
9878
- (nn = x.presetRanges) != null && nn.length ? (m(), O("div", s0, [
9879
- (m(!0), O(ve, null, Ae(x.presetRanges, (ae, Nt) => (m(), O("div", {
9888
+ (nn = x.presetRanges) != null && nn.length ? (m(), w("div", s0, [
9889
+ (m(!0), w(ve, null, Ae(x.presetRanges, (ae, Nt) => (m(), w("div", {
9880
9890
  key: Nt,
9881
9891
  style: mt(ae.style || {}),
9882
9892
  class: "dp__preset_range",
@@ -9887,7 +9897,7 @@ const dh = (e, t, n, r) => {
9887
9897
  presetDateRange: c(B),
9888
9898
  label: ae.label,
9889
9899
  range: ae.range
9890
- }) : (m(), O(ve, { key: 1 }, [
9900
+ }) : (m(), w(ve, { key: 1 }, [
9891
9901
  Ge(me(ae.label), 1)
9892
9902
  ], 64))
9893
9903
  ], 12, c0))), 128))
@@ -9895,13 +9905,13 @@ const dh = (e, t, n, r) => {
9895
9905
  E("div", {
9896
9906
  class: "dp__instance_calendar",
9897
9907
  ref_key: "calendarWrapperRef",
9898
- ref: w,
9908
+ ref: O,
9899
9909
  role: "document"
9900
9910
  }, [
9901
9911
  E("div", {
9902
9912
  class: ye(c(Lr))
9903
9913
  }, [
9904
- (m(!0), O(ve, null, Ae(c(kt), (ae, Nt) => (m(), O("div", {
9914
+ (m(!0), w(ve, null, Ae(c(kt), (ae, Nt) => (m(), w("div", {
9905
9915
  key: ae,
9906
9916
  class: ye(c(en))
9907
9917
  }, [
@@ -9924,7 +9934,7 @@ const dh = (e, t, n, r) => {
9924
9934
  onMonthYearSelect: c(D),
9925
9935
  onOverlayClosed: N
9926
9936
  }), Ze({ _: 2 }, [
9927
- Ae(c(fe), (_e, Qi) => ({
9937
+ Ae(c(de), (_e, Qi) => ({
9928
9938
  name: _e,
9929
9939
  fn: ne((Wr) => [
9930
9940
  q(x.$slots, _e, nt(vt(Wr)))
@@ -9934,7 +9944,7 @@ const dh = (e, t, n, r) => {
9934
9944
  Ce(Ah, Be({
9935
9945
  ref_for: !0,
9936
9946
  ref: (_e) => {
9937
- _e && (g.value[Nt] = _e);
9947
+ _e && (b.value[Nt] = _e);
9938
9948
  },
9939
9949
  "specific-mode": c(Ur),
9940
9950
  "get-week-num": c(T),
@@ -9963,14 +9973,14 @@ const dh = (e, t, n, r) => {
9963
9973
  ], 2))), 128))
9964
9974
  ], 2),
9965
9975
  E("div", null, [
9966
- x.$slots["time-picker"] ? q(x.$slots, "time-picker", nt(Be({ key: 0 }, { time: c(b), updateTime: c(z) }))) : (m(), O(ve, { key: 1 }, [
9976
+ x.$slots["time-picker"] ? q(x.$slots, "time-picker", nt(Be({ key: 0 }, { time: c(g), updateTime: c(z) }))) : (m(), w(ve, { key: 1 }, [
9967
9977
  x.enableTimePicker && !x.monthPicker && !x.weekPicker ? (m(), pe(ln(x.timePickerComponent ? x.timePickerComponent : o0), Be({
9968
9978
  key: 0,
9969
9979
  ref_key: "timePickerRef",
9970
9980
  ref: C,
9971
- hours: c(b).hours,
9972
- minutes: c(b).minutes,
9973
- seconds: c(b).seconds,
9981
+ hours: c(g).hours,
9982
+ minutes: c(g).minutes,
9983
+ seconds: c(g).seconds,
9974
9984
  "internal-model-value": e.internalModelValue
9975
9985
  }, x.$props, {
9976
9986
  onMount: Z[4] || (Z[4] = (ae) => ee("timePicker")),
@@ -9990,15 +10000,15 @@ const dh = (e, t, n, r) => {
9990
10000
  ], 64))
9991
10001
  ])
9992
10002
  ], 512),
9993
- x.$slots["right-sidebar"] ? (m(), O("div", f0, [
10003
+ x.$slots["right-sidebar"] ? (m(), w("div", f0, [
9994
10004
  q(x.$slots, "right-sidebar")
9995
10005
  ])) : $("", !0),
9996
- x.showNowButton ? (m(), O("div", d0, [
10006
+ x.showNowButton ? (m(), w("div", d0, [
9997
10007
  x.$slots["now-button"] ? q(x.$slots, "now-button", {
9998
10008
  key: 0,
9999
10009
  selectCurrentDate: c(_)
10000
10010
  }) : $("", !0),
10001
- x.$slots["now-button"] ? $("", !0) : (m(), O("button", {
10011
+ x.$slots["now-button"] ? $("", !0) : (m(), w("button", {
10002
10012
  key: 1,
10003
10013
  type: "button",
10004
10014
  role: "button",
@@ -10051,8 +10061,8 @@ const dh = (e, t, n, r) => {
10051
10061
  }, h0 = (e, t, n, r = {}) => {
10052
10062
  const { window: a = y0, event: o = "pointerdown" } = r;
10053
10063
  return a ? v0(a, o, (l) => {
10054
- const u = Ve(e), f = Ve(t);
10055
- !u || !f || u === l.target || l.composedPath().includes(u) || l.composedPath().includes(f) || n(l);
10064
+ const u = He(e), d = He(t);
10065
+ !u || !d || u === l.target || l.composedPath().includes(u) || l.composedPath().includes(d) || n(l);
10056
10066
  }, { passive: !0 }) : void 0;
10057
10067
  }, _0 = /* @__PURE__ */ Oe({
10058
10068
  __name: "VueDatePicker",
@@ -10074,11 +10084,11 @@ const dh = (e, t, n, r) => {
10074
10084
  "invalid-select"
10075
10085
  ],
10076
10086
  setup(e, { expose: t, emit: n }) {
10077
- const r = e, a = Er(), o = W(!1), l = oa(r, "modelValue"), u = oa(r, "timezone"), f = W(null), y = W(null), w = W(!1), { setMenuFocused: d, setShiftKey: s } = zi(), { clearArrowNav: g } = Ot(), { validateDate: C, isValidTime: S, defaults: F } = rt(r);
10087
+ const r = e, a = Er(), o = W(!1), l = oa(r, "modelValue"), u = oa(r, "timezone"), d = W(null), y = W(null), O = W(!1), { setMenuFocused: f, setShiftKey: s } = zi(), { clearArrowNav: b } = Ot(), { validateDate: C, isValidTime: S, defaults: F } = rt(r);
10078
10088
  et(() => {
10079
- K(r.modelValue), r.inline || (window.addEventListener("scroll", b), window.addEventListener("resize", z)), r.inline && (o.value = !0);
10089
+ K(r.modelValue), r.inline || (window.addEventListener("scroll", g), window.addEventListener("resize", z)), r.inline && (o.value = !0);
10080
10090
  }), Oo(() => {
10081
- r.inline || (window.removeEventListener("scroll", b), window.removeEventListener("resize", z));
10091
+ r.inline || (window.removeEventListener("scroll", g), window.removeEventListener("resize", z));
10082
10092
  });
10083
10093
  const M = xt(a, "all", r.presetRanges), V = xt(a, "input");
10084
10094
  ct(
@@ -10089,7 +10099,7 @@ const dh = (e, t, n, r) => {
10089
10099
  { deep: !0 }
10090
10100
  );
10091
10101
  const { openOnTop: R, menuPosition: j, setMenuPosition: te, setInitialPosition: k } = dh(
10092
- f,
10102
+ d,
10093
10103
  y,
10094
10104
  n,
10095
10105
  r
@@ -10100,7 +10110,7 @@ const dh = (e, t, n, r) => {
10100
10110
  emitModelValue: X,
10101
10111
  formatInputValue: L,
10102
10112
  checkBeforeEmit: Q
10103
- } = ch(n, r, w), le = H(
10113
+ } = ch(n, r, O), le = H(
10104
10114
  () => ({
10105
10115
  dp__main: !0,
10106
10116
  dp__theme_dark: r.dark,
@@ -10108,8 +10118,8 @@ const dh = (e, t, n, r) => {
10108
10118
  dp__flex_display: r.inline,
10109
10119
  dp__flex_display_with_input: r.inlineWithInput
10110
10120
  })
10111
- ), Y = H(() => r.dark ? "dp__theme_dark" : "dp__theme_light"), b = () => {
10112
- o.value && (r.closeOnScroll ? ce() : r.autoPosition && te());
10121
+ ), Y = H(() => r.dark ? "dp__theme_dark" : "dp__theme_light"), g = () => {
10122
+ o.value && (r.closeOnScroll ? fe() : r.autoPosition && te());
10113
10123
  }, z = () => {
10114
10124
  o.value && te();
10115
10125
  }, i = () => {
@@ -10117,54 +10127,54 @@ const dh = (e, t, n, r) => {
10117
10127
  te(), o.value && n("open");
10118
10128
  }), o.value || G(), K(r.modelValue));
10119
10129
  }, v = () => {
10120
- P.value = "", G(), n("update:model-value", null), n("cleared"), ce();
10130
+ P.value = "", G(), n("update:model-value", null), n("cleared"), fe();
10121
10131
  }, T = () => {
10122
- const fe = N.value;
10123
- return !fe || !Array.isArray(fe) && C(fe) ? !0 : Array.isArray(fe) ? fe.length === 2 && C(fe[0]) && C(fe[1]) ? !0 : C(fe[0]) : !1;
10132
+ const de = N.value;
10133
+ return !de || !Array.isArray(de) && C(de) ? !0 : Array.isArray(de) ? de.length === 2 && C(de[0]) && C(de[1]) ? !0 : C(de[0]) : !1;
10124
10134
  }, D = () => {
10125
- Q() && T() ? (X(), ce()) : n("invalid-select", N.value);
10126
- }, U = (fe) => {
10127
- X(), r.closeOnAutoApply && !fe && ce();
10128
- }, h = (fe = !1) => {
10129
- r.autoApply && S(N.value) && T() && (r.range && Array.isArray(N.value) ? (r.partialRange || N.value.length === 2) && U(fe) : U(fe));
10135
+ Q() && T() ? (X(), fe()) : n("invalid-select", N.value);
10136
+ }, U = (de) => {
10137
+ X(), r.closeOnAutoApply && !de && fe();
10138
+ }, h = (de = !1) => {
10139
+ r.autoApply && S(N.value) && T() && (r.range && Array.isArray(N.value) ? (r.partialRange || N.value.length === 2) && U(de) : U(de));
10130
10140
  }, G = () => {
10131
10141
  r.textInput || (N.value = null);
10132
- }, ce = () => {
10133
- r.inline || (o.value && (o.value = !1, d(!1), s(!1), g(), n("closed"), k(), P.value && K(l.value)), G(), y.value && y.value.focusInput());
10134
- }, _ = (fe, ke) => {
10135
- if (!fe) {
10142
+ }, fe = () => {
10143
+ r.inline || (o.value && (o.value = !1, f(!1), s(!1), b(), n("closed"), k(), P.value && K(l.value)), G(), y.value && y.value.focusInput());
10144
+ }, _ = (de, ke) => {
10145
+ if (!de) {
10136
10146
  N.value = null;
10137
10147
  return;
10138
10148
  }
10139
- N.value = fe, ke && (D(), n("text-submit"));
10149
+ N.value = de, ke && (D(), n("text-submit"));
10140
10150
  }, B = () => {
10141
10151
  r.autoApply && S(N.value) && X();
10142
- }, xe = () => o.value ? ce() : i(), he = (fe) => {
10143
- N.value = fe;
10152
+ }, xe = () => o.value ? fe() : i(), he = (de) => {
10153
+ N.value = de;
10144
10154
  }, ue = H(() => r.textInput && F.value.textInputOptions.format), Re = () => {
10145
- ue.value && (w.value = !0, L()), n("focus");
10155
+ ue.value && (O.value = !0, L()), n("focus");
10146
10156
  }, tt = () => {
10147
- ue.value && (w.value = !1, L()), n("blur");
10148
- }, se = (fe) => {
10149
- f.value && f.value.updateMonthYear(0, {
10150
- month: fi(fe.month),
10151
- year: fi(fe.year)
10157
+ ue.value && (O.value = !1, L()), n("blur");
10158
+ }, se = (de) => {
10159
+ d.value && d.value.updateMonthYear(0, {
10160
+ month: fi(de.month),
10161
+ year: fi(de.year)
10152
10162
  });
10153
10163
  };
10154
10164
  return h0(
10155
- f,
10165
+ d,
10156
10166
  y,
10157
- r.onClickOutside ? () => r.onClickOutside(T) : ce
10167
+ r.onClickOutside ? () => r.onClickOutside(T) : fe
10158
10168
  ), t({
10159
- closeMenu: ce,
10169
+ closeMenu: fe,
10160
10170
  selectDate: D,
10161
10171
  clearValue: v,
10162
10172
  openMenu: i,
10163
- onScroll: b,
10173
+ onScroll: g,
10164
10174
  formatInputValue: L,
10165
10175
  updateInternalModelValue: he,
10166
10176
  setMonthYear: se
10167
- }), (fe, ke) => (m(), O("div", {
10177
+ }), (de, ke) => (m(), w("div", {
10168
10178
  class: ye(c(le))
10169
10179
  }, [
10170
10180
  Ce(gh, Be({
@@ -10173,52 +10183,52 @@ const dh = (e, t, n, r) => {
10173
10183
  "is-menu-open": o.value,
10174
10184
  "input-value": c(P),
10175
10185
  "onUpdate:input-value": ke[0] || (ke[0] = (be) => lt(P) ? P.value = be : null)
10176
- }, fe.$props, {
10186
+ }, de.$props, {
10177
10187
  onClear: v,
10178
10188
  onOpen: i,
10179
10189
  onSetInputDate: _,
10180
10190
  onSetEmptyDate: c(X),
10181
10191
  onSelectDate: D,
10182
10192
  onToggle: xe,
10183
- onClose: ce,
10193
+ onClose: fe,
10184
10194
  onFocus: Re,
10185
10195
  onBlur: tt
10186
10196
  }), Ze({ _: 2 }, [
10187
10197
  Ae(c(V), (be, Ut) => ({
10188
10198
  name: be,
10189
10199
  fn: ne((dt) => [
10190
- q(fe.$slots, be, nt(vt(dt)))
10200
+ q(de.$slots, be, nt(vt(dt)))
10191
10201
  ])
10192
10202
  }))
10193
10203
  ]), 1040, ["is-menu-open", "input-value", "onSetEmptyDate"]),
10194
10204
  o.value ? (m(), pe(wo, {
10195
10205
  key: 0,
10196
- to: fe.teleport,
10197
- disabled: fe.inline
10206
+ to: de.teleport,
10207
+ disabled: de.inline
10198
10208
  }, [
10199
10209
  o.value ? (m(), pe(p0, Be({
10200
10210
  key: 0,
10201
10211
  ref_key: "dpMenuRef",
10202
- ref: f,
10212
+ ref: d,
10203
10213
  class: c(Y),
10204
10214
  style: c(j),
10205
10215
  "open-on-top": c(R)
10206
- }, fe.$props, {
10216
+ }, de.$props, {
10207
10217
  "internal-model-value": c(N),
10208
10218
  "onUpdate:internal-model-value": ke[1] || (ke[1] = (be) => lt(N) ? N.value = be : null),
10209
- onClosePicker: ce,
10219
+ onClosePicker: fe,
10210
10220
  onSelectDate: D,
10211
10221
  onAutoApply: h,
10212
10222
  onTimeUpdate: B,
10213
- onFlowStep: ke[2] || (ke[2] = (be) => fe.$emit("flow-step", be)),
10214
- onUpdateMonthYear: ke[3] || (ke[3] = (be) => fe.$emit("update-month-year", be)),
10215
- onInvalidSelect: ke[4] || (ke[4] = (be) => fe.$emit("invalid-select", c(N))),
10223
+ onFlowStep: ke[2] || (ke[2] = (be) => de.$emit("flow-step", be)),
10224
+ onUpdateMonthYear: ke[3] || (ke[3] = (be) => de.$emit("update-month-year", be)),
10225
+ onInvalidSelect: ke[4] || (ke[4] = (be) => de.$emit("invalid-select", c(N))),
10216
10226
  onRecalculatePosition: c(te)
10217
10227
  }), Ze({ _: 2 }, [
10218
10228
  Ae(c(M), (be, Ut) => ({
10219
10229
  name: be,
10220
10230
  fn: ne((dt) => [
10221
- q(fe.$slots, be, nt(vt({ ...dt })))
10231
+ q(de.$slots, be, nt(vt({ ...dt })))
10222
10232
  ])
10223
10233
  }))
10224
10234
  ]), 1040, ["class", "style", "open-on-top", "internal-model-value", "onRecalculatePosition"])) : $("", !0)
@@ -10270,19 +10280,19 @@ const g0 = { class: "rm-datepicker" }, V0 = /* @__PURE__ */ Oe({
10270
10280
  }
10271
10281
  return et(() => {
10272
10282
  n.currentDate && (r.value = n.currentDate);
10273
- }), (l, u) => (m(), O("div", g0, [
10274
- Ye(E("p", { class: "rm-datepicker__label" }, me(e.label), 513), [
10283
+ }), (l, u) => (m(), w("div", g0, [
10284
+ Ue(E("p", { class: "rm-datepicker__label" }, me(e.label), 513), [
10275
10285
  [bt, e.label]
10276
10286
  ]),
10277
10287
  Ce(c(Eo), Be({
10278
10288
  modelValue: r.value,
10279
- "onUpdate:modelValue": u[0] || (u[0] = (f) => r.value = f),
10289
+ "onUpdate:modelValue": u[0] || (u[0] = (d) => r.value = d),
10280
10290
  "enable-time-picker": !1,
10281
10291
  "auto-apply": "",
10282
10292
  clearable: !!e.currentDate
10283
10293
  }, c(a), {
10284
10294
  "onUpdate:modelValue": o,
10285
- onCleared: u[1] || (u[1] = (f) => t("delete"))
10295
+ onCleared: u[1] || (u[1] = (d) => t("delete"))
10286
10296
  }), null, 16, ["modelValue", "clearable"])
10287
10297
  ]));
10288
10298
  }
@@ -10309,7 +10319,7 @@ const w0 = {
10309
10319
  t.dynamic && (n.value = !0, setTimeout(() => {
10310
10320
  n.value = !1;
10311
10321
  }, +t.duration));
10312
- }), (a, o) => (m(), O("div", {
10322
+ }), (a, o) => (m(), w("div", {
10313
10323
  class: ye([
10314
10324
  "rm-tooltip",
10315
10325
  `position-${e.position}`,
@@ -10322,7 +10332,7 @@ const w0 = {
10322
10332
  onMouseout: r
10323
10333
  }, [
10324
10334
  q(a.$slots, "default"),
10325
- e.label ? (m(), O("div", w0, [
10335
+ e.label ? (m(), w("div", w0, [
10326
10336
  E("p", O0, me(e.label), 1)
10327
10337
  ])) : $("", !0)
10328
10338
  ], 34));
@@ -10338,7 +10348,7 @@ const $0 = { class: "rm-avatar__overlay" }, k0 = ["src"], P0 = { class: "rm-avat
10338
10348
  },
10339
10349
  setup(e) {
10340
10350
  const t = e, n = H(() => t.label.trim().replace(/\s+/g, " ").split(" ").map((r) => r[0].toUpperCase()).join("").slice(0, 2));
10341
- return (r, a) => (m(), O("div", {
10351
+ return (r, a) => (m(), w("div", {
10342
10352
  class: ye([
10343
10353
  "rm-avatar",
10344
10354
  {
@@ -10348,7 +10358,7 @@ const $0 = { class: "rm-avatar__overlay" }, k0 = ["src"], P0 = { class: "rm-avat
10348
10358
  ])
10349
10359
  }, [
10350
10360
  E("div", $0, [
10351
- e.avatar ? (m(), O("img", {
10361
+ e.avatar ? (m(), w("img", {
10352
10362
  key: 0,
10353
10363
  src: e.avatar,
10354
10364
  class: "rm-avatar__avatar-image",
@@ -10377,7 +10387,7 @@ const T0 = {
10377
10387
  return (t, n) => (m(), pe(wo, { to: "body" }, [
10378
10388
  Ce(Je, { name: "fade" }, {
10379
10389
  default: ne(() => [
10380
- e.isActive ? Ye((m(), O("div", T0, S0)), [
10390
+ e.isActive ? Ue((m(), w("div", T0, S0)), [
10381
10391
  [c(vi), e.isLock && e.isActive]
10382
10392
  ]) : $("", !0)
10383
10393
  ]),