redmine-ui-kit 1.3.8 → 1.3.10

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,
@@ -746,31 +746,34 @@ const ys = /* @__PURE__ */ is(us, [["render", ps]]), ms = {
746
746
  emits: ["change"],
747
747
  setup(e, { emit: t }) {
748
748
  const n = e, r = W(!1), a = W(n.value);
749
- ct(() => n.value, (w) => a.value = w);
749
+ ct(() => n.value, (f) => a.value = f);
750
750
  function o() {
751
- t("change", a.value), f();
751
+ t("change", a.value), y();
752
752
  }
753
- function l(w) {
754
- a.value = w, (n.autoSave || !n.hasActions) && o();
753
+ function l(f) {
754
+ a.value = f, (n.autoSave || !n.hasActions) && o();
755
755
  }
756
- function u() {
757
- a.value = n.value;
756
+ function u(f) {
757
+ t(f, a.value), y();
758
758
  }
759
- function f() {
760
- u(), r.value = !1;
759
+ function d() {
760
+ a.value = n.value;
761
761
  }
762
762
  function y() {
763
+ d(), r.value = !1;
764
+ }
765
+ function O() {
763
766
  n.editByFocus && (r.value = !0);
764
767
  }
765
- return (w, d) => Ye((m(), O("div", {
768
+ return (f, s) => Ue((m(), w("div", {
766
769
  class: ye(["rm-editable", { active: r.value }])
767
770
  }, [
768
- r.value ? (m(), O("div", ms, [
769
- q(w.$slots, "header")
771
+ r.value ? (m(), w("div", ms, [
772
+ q(f.$slots, "header")
770
773
  ])) : $("", !0),
771
774
  E("div", {
772
775
  class: "rm-editable__content",
773
- onClick: y
776
+ onClick: O
774
777
  }, [
775
778
  r.value ? (m(), pe(Cu, {
776
779
  key: 1,
@@ -778,13 +781,18 @@ const ys = /* @__PURE__ */ is(us, [["render", ps]]), ms = {
778
781
  maxlength: e.maxlength,
779
782
  "is-auto-grow": e.isAutoGrow,
780
783
  class: "rm-editable__content-input",
781
- onChange: l
782
- }, null, 8, ["model-value", "maxlength", "is-auto-grow"])) : (m(), O("div", vs, [
783
- 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 }),
784
792
  e.editByFocus ? $("", !0) : (m(), pe(ht, {
785
793
  key: 0,
786
794
  class: "rm-editable__content-slot__edit rm-common-button rm-common-button--flat",
787
- onClick: d[0] || (d[0] = (s) => r.value = !0)
795
+ onClick: s[0] || (s[0] = (b) => r.value = !0)
788
796
  }, {
789
797
  default: ne(() => [
790
798
  Ce(ys)
@@ -793,9 +801,9 @@ const ys = /* @__PURE__ */ is(us, [["render", ps]]), ms = {
793
801
  }))
794
802
  ]))
795
803
  ]),
796
- r.value ? (m(), O("div", hs, [
797
- w.$slots.footer ? q(w.$slots, "footer", { key: 0 }) : $("", !0),
798
- !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, [
799
807
  Ce(ht, {
800
808
  label: e.saveLabel,
801
809
  class: "rm-common-button rm-common-button--flat rm-common-button--blue",
@@ -804,12 +812,12 @@ const ys = /* @__PURE__ */ is(us, [["render", ps]]), ms = {
804
812
  Ce(ht, {
805
813
  label: e.cancelLabel,
806
814
  class: "rm-common-button rm-common-button--flat",
807
- onClick: f
815
+ onClick: y
808
816
  }, null, 8, ["label"])
809
817
  ])) : $("", !0)
810
818
  ])) : $("", !0)
811
819
  ], 2)), [
812
- [c(Jt), f]
820
+ [c(Jt), y]
813
821
  ]);
814
822
  }
815
823
  });
@@ -828,7 +836,7 @@ const bs = {
828
836
  gs
829
837
  ];
830
838
  function Os(e, t) {
831
- return m(), O("svg", bs, ws);
839
+ return m(), w("svg", bs, ws);
832
840
  }
833
841
  const $s = { render: Os }, ks = {
834
842
  key: 0,
@@ -845,8 +853,8 @@ const $s = { render: Os }, ks = {
845
853
  setup(e, { emit: t }) {
846
854
  return (n, r) => (m(), pe(Je, { name: "slide" }, {
847
855
  default: ne(() => [
848
- e.visibility ? (m(), O("div", ks, [
849
- Ye((m(), O("div", {
856
+ e.visibility ? (m(), w("div", ks, [
857
+ Ue((m(), w("div", {
850
858
  class: ye(["rm-alert", e.status])
851
859
  }, [
852
860
  E("div", Ps, [
@@ -894,7 +902,7 @@ const Ss = {
894
902
  setup(e, { emit: t }) {
895
903
  return (n, r) => (m(), pe(Je, { name: "fade" }, {
896
904
  default: ne(() => [
897
- e.visibility ? Ye((m(), O("div", Ss, [
905
+ e.visibility ? Ue((m(), w("div", Ss, [
898
906
  E("h3", Rs, me(e.title), 1),
899
907
  E("div", Ms, [
900
908
  Ce(ht, {
@@ -926,7 +934,7 @@ const Cs = {
926
934
  setup(e, { emit: t }) {
927
935
  return (n, r) => (m(), pe(Je, { name: "slide" }, {
928
936
  default: ne(() => [
929
- e.isActive ? Ye((m(), O("div", Cs, [
937
+ e.isActive ? Ue((m(), w("div", Cs, [
930
938
  q(n.$slots, "default")
931
939
  ])), [
932
940
  [c(Jt), () => t("update:isActive", !1)]
@@ -985,7 +993,7 @@ function sn(e) {
985
993
  function gi(e, t) {
986
994
  if (J(2, arguments), !t || sn(t) !== "object")
987
995
  return new Date(NaN);
988
- 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);
989
997
  return S;
990
998
  }
991
999
  function Ns(e, t) {
@@ -998,12 +1006,12 @@ function wt() {
998
1006
  return As;
999
1007
  }
1000
1008
  function la(e, t) {
1001
- var n, r, a, o, l, u, f, y;
1009
+ var n, r, a, o, l, u, d, y;
1002
1010
  J(1, arguments);
1003
- 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);
1004
- 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))
1005
1013
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1006
- 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;
1007
1015
  return s.setDate(s.getDate() - C), s.setHours(0, 0, 0, 0), s;
1008
1016
  }
1009
1017
  function Xn(e) {
@@ -1070,22 +1078,22 @@ function Lo(e, t) {
1070
1078
  var r = e || {}, a = ie(r.start), o = ie(r.end), l = o.getTime();
1071
1079
  if (!(a.getTime() <= l))
1072
1080
  throw new RangeError("Invalid interval");
1073
- var u = [], f = a;
1074
- f.setHours(0, 0, 0, 0);
1081
+ var u = [], d = a;
1082
+ d.setHours(0, 0, 0, 0);
1075
1083
  var y = Number((n = t == null ? void 0 : t.step) !== null && n !== void 0 ? n : 1);
1076
1084
  if (y < 1 || isNaN(y))
1077
1085
  throw new RangeError("`options.step` must be a number greater than 1");
1078
- for (; f.getTime() <= l; )
1079
- 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);
1080
1088
  return u;
1081
1089
  }
1082
1090
  function Ls(e, t) {
1083
- var n, r, a, o, l, u, f, y;
1091
+ var n, r, a, o, l, u, d, y;
1084
1092
  J(1, arguments);
1085
- 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);
1086
- 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))
1087
1095
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1088
- 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);
1089
1097
  return s.setDate(s.getDate() + C), s.setHours(23, 59, 59, 999), s;
1090
1098
  }
1091
1099
  function $i(e, t) {
@@ -1129,33 +1137,33 @@ function Pi(e) {
1129
1137
  return Math.round(n / Ws) + 1;
1130
1138
  }
1131
1139
  function Rt(e, t) {
1132
- var n, r, a, o, l, u, f, y;
1140
+ var n, r, a, o, l, u, d, y;
1133
1141
  J(1, arguments);
1134
- 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);
1135
- 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))
1136
1144
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1137
- 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;
1138
1146
  return s.setUTCDate(s.getUTCDate() - C), s.setUTCHours(0, 0, 0, 0), s;
1139
1147
  }
1140
1148
  function Po(e, t) {
1141
- var n, r, a, o, l, u, f, y;
1149
+ var n, r, a, o, l, u, d, y;
1142
1150
  J(1, arguments);
1143
- 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);
1144
- 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))
1145
1153
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1146
1154
  var C = new Date(0);
1147
- 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);
1148
1156
  var S = Rt(C, t), F = new Date(0);
1149
- F.setUTCFullYear(d, 0, g), F.setUTCHours(0, 0, 0, 0);
1157
+ F.setUTCFullYear(f, 0, b), F.setUTCHours(0, 0, 0, 0);
1150
1158
  var M = Rt(F, t);
1151
- 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;
1152
1160
  }
1153
1161
  function js(e, t) {
1154
- var n, r, a, o, l, u, f, y;
1162
+ var n, r, a, o, l, u, d, y;
1155
1163
  J(1, arguments);
1156
- 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);
1157
- g.setUTCFullYear(s, 0, d), g.setUTCHours(0, 0, 0, 0);
1158
- 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);
1159
1167
  return C;
1160
1168
  }
1161
1169
  var zs = 6048e5;
@@ -1999,8 +2007,8 @@ function Ft(e) {
1999
2007
  var o = e.defaultFormattingWidth || e.defaultWidth, l = n != null && n.width ? String(n.width) : o;
2000
2008
  a = e.formattingValues[l] || e.formattingValues[o];
2001
2009
  } else {
2002
- var u = e.defaultWidth, f = n != null && n.width ? String(n.width) : e.defaultWidth;
2003
- 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];
2004
2012
  }
2005
2013
  var y = e.argumentCallback ? e.argumentCallback(t) : t;
2006
2014
  return a[y];
@@ -2131,16 +2139,16 @@ function Wt(e) {
2131
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);
2132
2140
  if (!o)
2133
2141
  return null;
2134
- var l = o[0], u = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], f = Array.isArray(u) ? wc(u, function(d) {
2135
- return d.test(l);
2136
- }) : gc(u, function(d) {
2137
- 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);
2138
2146
  }), y;
2139
- y = e.valueCallback ? e.valueCallback(f) : f, y = n.valueCallback ? n.valueCallback(y) : y;
2140
- 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);
2141
2149
  return {
2142
2150
  value: y,
2143
- rest: w
2151
+ rest: O
2144
2152
  };
2145
2153
  };
2146
2154
  }
@@ -2270,12 +2278,12 @@ var Bc = {
2270
2278
  const Ri = Bc;
2271
2279
  var Yc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Uc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Lc = /^'([^]*?)'?$/, Vc = /''/g, Hc = /[a-zA-Z]/;
2272
2280
  function Xt(e, t, n) {
2273
- 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;
2274
2282
  J(2, arguments);
2275
- 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);
2276
2284
  if (!(N >= 1 && N <= 7))
2277
2285
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
2278
- 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);
2279
2287
  if (!(K >= 0 && K <= 6))
2280
2288
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2281
2289
  if (!P.localize)
@@ -2290,25 +2298,25 @@ function Xt(e, t, n) {
2290
2298
  weekStartsOn: K,
2291
2299
  locale: P,
2292
2300
  _originalDate: X
2293
- }, Y = te.match(Uc).map(function(b) {
2294
- var z = b[0];
2301
+ }, Y = te.match(Uc).map(function(g) {
2302
+ var z = g[0];
2295
2303
  if (z === "p" || z === "P") {
2296
2304
  var i = ia[z];
2297
- return i(b, P.formatLong);
2305
+ return i(g, P.formatLong);
2298
2306
  }
2299
- return b;
2300
- }).join("").match(Yc).map(function(b) {
2301
- if (b === "''")
2307
+ return g;
2308
+ }).join("").match(Yc).map(function(g) {
2309
+ if (g === "''")
2302
2310
  return "'";
2303
- var z = b[0];
2311
+ var z = g[0];
2304
2312
  if (z === "'")
2305
- return Fc(b);
2313
+ return Fc(g);
2306
2314
  var i = Xs[z];
2307
2315
  if (i)
2308
- 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);
2309
2317
  if (z.match(Hc))
2310
2318
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + z + "`");
2311
- return b;
2319
+ return g;
2312
2320
  }).join("");
2313
2321
  return Y;
2314
2322
  }
@@ -2461,8 +2469,8 @@ var Zc = 10, Ai = /* @__PURE__ */ function() {
2461
2469
  Ci(n, e);
2462
2470
  var t = Ni(n);
2463
2471
  function n(r, a, o, l, u) {
2464
- var f;
2465
- 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;
2466
2474
  }
2467
2475
  return So(n, [{
2468
2476
  key: "validate",
@@ -2885,8 +2893,8 @@ var vf = /* @__PURE__ */ function(e) {
2885
2893
  value: function(a, o, l) {
2886
2894
  var u = a.getUTCFullYear();
2887
2895
  if (l.isTwoDigitYear) {
2888
- var f = Ei(l.year, u);
2889
- 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;
2890
2898
  }
2891
2899
  var y = !("era" in o) || o.era === 1 ? l.year : 1 - l.year;
2892
2900
  return a.setUTCFullYear(y, 0, 1), a.setUTCHours(0, 0, 0, 0), a;
@@ -3001,13 +3009,13 @@ var $f = /* @__PURE__ */ function(e) {
3001
3009
  }, {
3002
3010
  key: "set",
3003
3011
  value: function(a, o, l, u) {
3004
- var f = Po(a, u);
3012
+ var d = Po(a, u);
3005
3013
  if (l.isTwoDigitYear) {
3006
- var y = Ei(l.year, f);
3014
+ var y = Ei(l.year, d);
3007
3015
  return a.setUTCFullYear(y, 0, u.firstWeekContainsDate), a.setUTCHours(0, 0, 0, 0), Rt(a, u);
3008
3016
  }
3009
- var w = !("era" in o) || o.era === 1 ? l.year : 1 - l.year;
3010
- 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);
3011
3019
  }
3012
3020
  }]), n;
3013
3021
  }(ge);
@@ -4043,8 +4051,8 @@ var Ad = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Id = [31, 29, 31, 30,
4043
4051
  }, {
4044
4052
  key: "validate",
4045
4053
  value: function(a, o) {
4046
- var l = a.getUTCFullYear(), u = Bi(l), f = a.getUTCMonth();
4047
- 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];
4048
4056
  }
4049
4057
  }, {
4050
4058
  key: "set",
@@ -4162,13 +4170,13 @@ var Fd = /* @__PURE__ */ function(e) {
4162
4170
  }]), n;
4163
4171
  }(ge);
4164
4172
  function Mo(e, t, n) {
4165
- var r, a, o, l, u, f, y, w;
4173
+ var r, a, o, l, u, d, y, O;
4166
4174
  J(2, arguments);
4167
- 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);
4168
4176
  if (!(s >= 0 && s <= 6))
4169
4177
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
4170
- var g = ie(e), C = oe(t), S = g.getUTCDay(), F = C % 7, M = (F + 7) % 7, V = (M < s ? 7 : 0) + C - S;
4171
- 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;
4172
4180
  }
4173
4181
  function Dn(e) {
4174
4182
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Dn = function(n) {
@@ -4392,18 +4400,18 @@ var rp = /* @__PURE__ */ function(e) {
4392
4400
  return Gd(n, [{
4393
4401
  key: "parse",
4394
4402
  value: function(a, o, l, u) {
4395
- var f = function(w) {
4396
- var d = Math.floor((w - 1) / 7) * 7;
4397
- 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;
4398
4406
  };
4399
4407
  switch (o) {
4400
4408
  case "e":
4401
4409
  case "ee":
4402
- return Ee(Ne(o.length, a), f);
4410
+ return Ee(Ne(o.length, a), d);
4403
4411
  case "eo":
4404
4412
  return Ee(l.ordinalNumber(a, {
4405
4413
  unit: "day"
4406
- }), f);
4414
+ }), d);
4407
4415
  case "eee":
4408
4416
  return l.day(a, {
4409
4417
  width: "abbreviated",
@@ -4540,18 +4548,18 @@ var cp = /* @__PURE__ */ function(e) {
4540
4548
  return op(n, [{
4541
4549
  key: "parse",
4542
4550
  value: function(a, o, l, u) {
4543
- var f = function(w) {
4544
- var d = Math.floor((w - 1) / 7) * 7;
4545
- 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;
4546
4554
  };
4547
4555
  switch (o) {
4548
4556
  case "c":
4549
4557
  case "cc":
4550
- return Ee(Ne(o.length, a), f);
4558
+ return Ee(Ne(o.length, a), d);
4551
4559
  case "co":
4552
4560
  return Ee(l.ordinalNumber(a, {
4553
4561
  unit: "day"
4554
- }), f);
4562
+ }), d);
4555
4563
  case "ccc":
4556
4564
  return l.day(a, {
4557
4565
  width: "abbreviated",
@@ -4609,8 +4617,8 @@ function fp(e, t) {
4609
4617
  J(2, arguments);
4610
4618
  var n = oe(t);
4611
4619
  n % 7 === 0 && (n = n - 7);
4612
- var r = 1, a = ie(e), o = a.getUTCDay(), l = n % 7, u = (l + 7) % 7, f = (u < r ? 7 : 0) + n - o;
4613
- 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;
4614
4622
  }
4615
4623
  function Rn(e) {
4616
4624
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Rn = function(n) {
@@ -5841,8 +5849,8 @@ var Ay = /* @__PURE__ */ function(e) {
5841
5849
  return Sy(n, [{
5842
5850
  key: "parse",
5843
5851
  value: function(a, o) {
5844
- var l = function(f) {
5845
- 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));
5846
5854
  };
5847
5855
  return Ee(Ne(o.length, a), l);
5848
5856
  }
@@ -6340,12 +6348,12 @@ function Jl(e, t) {
6340
6348
  }
6341
6349
  var fm = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, dm = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, pm = /^'([^]*?)'?$/, ym = /''/g, mm = /\S/, vm = /[a-zA-Z]/;
6342
6350
  function _o(e, t, n, r) {
6343
- 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;
6344
6352
  J(3, arguments);
6345
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;
6346
6354
  if (!K.match)
6347
6355
  throw new RangeError("locale must contain match property");
6348
- 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);
6349
6357
  if (!(X >= 1 && X <= 7))
6350
6358
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
6351
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);
@@ -6364,7 +6372,7 @@ function _o(e, t, n, r) {
6364
6372
  return Re(he, K.formatLong);
6365
6373
  }
6366
6374
  return he;
6367
- }).join("").match(fm), b = [], z = Gl(Y), i;
6375
+ }).join("").match(fm), g = [], z = Gl(Y), i;
6368
6376
  try {
6369
6377
  var v = function() {
6370
6378
  var ue = i.value;
@@ -6373,14 +6381,14 @@ function _o(e, t, n, r) {
6373
6381
  if (tt) {
6374
6382
  var se = tt.incompatibleTokens;
6375
6383
  if (Array.isArray(se)) {
6376
- var fe = b.find(function(be) {
6384
+ var de = g.find(function(be) {
6377
6385
  return se.includes(be.token) || be.token === Re;
6378
6386
  });
6379
- if (fe)
6380
- throw new RangeError("The format string mustn't contain `".concat(fe.fullToken, "` and `").concat(ue, "` at the same time"));
6381
- } 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)
6382
6390
  throw new RangeError("The format string mustn't contain `".concat(ue, "` and any other token at the same time"));
6383
- b.push({
6391
+ g.push({
6384
6392
  token: Re,
6385
6393
  fullToken: ue
6386
6394
  });
@@ -6430,9 +6438,9 @@ function _o(e, t, n, r) {
6430
6438
  }), U = ie(n);
6431
6439
  if (isNaN(U.getTime()))
6432
6440
  return new Date(NaN);
6433
- var h = $i(U, Qn(U)), G = {}, ce = Gl(D), _;
6441
+ var h = $i(U, Qn(U)), G = {}, fe = Gl(D), _;
6434
6442
  try {
6435
- for (ce.s(); !(_ = ce.n()).done; ) {
6443
+ for (fe.s(); !(_ = fe.n()).done; ) {
6436
6444
  var B = _.value;
6437
6445
  if (!B.validate(h, Q))
6438
6446
  return new Date(NaN);
@@ -6440,9 +6448,9 @@ function _o(e, t, n, r) {
6440
6448
  Array.isArray(xe) ? (h = xe[0], Wc(G, xe[1])) : h = xe;
6441
6449
  }
6442
6450
  } catch (he) {
6443
- ce.e(he);
6451
+ fe.e(he);
6444
6452
  } finally {
6445
- ce.f();
6453
+ fe.f();
6446
6454
  }
6447
6455
  return h;
6448
6456
  }
@@ -6469,17 +6477,17 @@ function bm(e, t) {
6469
6477
  }
6470
6478
  if (!o || isNaN(o.getTime()))
6471
6479
  return new Date(NaN);
6472
- var u = o.getTime(), f = 0, y;
6473
- 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)))
6474
6482
  return new Date(NaN);
6475
6483
  if (a.timezone) {
6476
6484
  if (y = Dm(a.timezone), isNaN(y))
6477
6485
  return new Date(NaN);
6478
6486
  } else {
6479
- var w = new Date(u + f), d = new Date(0);
6480
- 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;
6481
6489
  }
6482
- return new Date(u + f + y);
6490
+ return new Date(u + d + y);
6483
6491
  }
6484
6492
  var an = {
6485
6493
  dateTimeDelimiter: /[T ]/,
@@ -6515,9 +6523,9 @@ function Pm(e, t) {
6515
6523
  var n = e.match(gm);
6516
6524
  if (!n)
6517
6525
  return new Date(NaN);
6518
- 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;
6519
6527
  if (r)
6520
- 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);
6521
6529
  var y = new Date(0);
6522
6530
  return !Rm(t, o, l) || !Mm(t, a) ? new Date(NaN) : (y.setUTCFullYear(t, o, Math.max(a, l)), y);
6523
6531
  }
@@ -6628,7 +6636,7 @@ function qn(e) {
6628
6636
  function Im(e, t) {
6629
6637
  if (J(2, arguments), !t || qn(t) !== "object")
6630
6638
  return new Date(NaN);
6631
- 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);
6632
6640
  return C;
6633
6641
  }
6634
6642
  function Em(e, t) {
@@ -6655,7 +6663,7 @@ const Ct = (e, t) => {
6655
6663
  Hm
6656
6664
  ];
6657
6665
  function Wm(e, t) {
6658
- return m(), O("svg", Ym, Fm);
6666
+ return m(), w("svg", Ym, Fm);
6659
6667
  }
6660
6668
  const Br = /* @__PURE__ */ Ct(Bm, [["render", Wm]]), jm = {}, zm = {
6661
6669
  version: "1.1",
@@ -6669,7 +6677,7 @@ const Br = /* @__PURE__ */ Ct(Bm, [["render", Wm]]), jm = {}, zm = {
6669
6677
  Km
6670
6678
  ];
6671
6679
  function Qm(e, t) {
6672
- return m(), O("svg", zm, Xm);
6680
+ return m(), w("svg", zm, Xm);
6673
6681
  }
6674
6682
  const Zm = /* @__PURE__ */ Ct(jm, [["render", Qm]]), Gm = {}, Jm = {
6675
6683
  version: "1.1",
@@ -6682,7 +6690,7 @@ const Zm = /* @__PURE__ */ Ct(jm, [["render", Qm]]), Gm = {}, Jm = {
6682
6690
  ev
6683
6691
  ];
6684
6692
  function nv(e, t) {
6685
- return m(), O("svg", Jm, tv);
6693
+ return m(), w("svg", Jm, tv);
6686
6694
  }
6687
6695
  const ei = /* @__PURE__ */ Ct(Gm, [["render", nv]]), rv = {}, av = {
6688
6696
  version: "1.1",
@@ -6695,7 +6703,7 @@ const ei = /* @__PURE__ */ Ct(Gm, [["render", nv]]), rv = {}, av = {
6695
6703
  ov
6696
6704
  ];
6697
6705
  function iv(e, t) {
6698
- return m(), O("svg", av, lv);
6706
+ return m(), w("svg", av, lv);
6699
6707
  }
6700
6708
  const ti = /* @__PURE__ */ Ct(rv, [["render", iv]]), uv = {}, sv = {
6701
6709
  version: "1.1",
@@ -6709,7 +6717,7 @@ const ti = /* @__PURE__ */ Ct(rv, [["render", iv]]), uv = {}, sv = {
6709
6717
  fv
6710
6718
  ];
6711
6719
  function pv(e, t) {
6712
- return m(), O("svg", sv, dv);
6720
+ return m(), w("svg", sv, dv);
6713
6721
  }
6714
6722
  const Hi = /* @__PURE__ */ Ct(uv, [["render", pv]]), yv = {}, mv = {
6715
6723
  version: "1.1",
@@ -6722,7 +6730,7 @@ const Hi = /* @__PURE__ */ Ct(uv, [["render", pv]]), yv = {}, mv = {
6722
6730
  vv
6723
6731
  ];
6724
6732
  function _v(e, t) {
6725
- return m(), O("svg", mv, hv);
6733
+ return m(), w("svg", mv, hv);
6726
6734
  }
6727
6735
  const Fi = /* @__PURE__ */ Ct(yv, [["render", _v]]), bv = {}, gv = {
6728
6736
  version: "1.1",
@@ -6735,7 +6743,7 @@ const Fi = /* @__PURE__ */ Ct(yv, [["render", _v]]), bv = {}, gv = {
6735
6743
  wv
6736
6744
  ];
6737
6745
  function $v(e, t) {
6738
- return m(), O("svg", gv, Ov);
6746
+ return m(), w("svg", gv, Ov);
6739
6747
  }
6740
6748
  const Wi = /* @__PURE__ */ Ct(bv, [["render", $v]]), ni = (e, t) => {
6741
6749
  const n = _o(e, t.slice(0, e.length), new Date());
@@ -6771,7 +6779,7 @@ const Wi = /* @__PURE__ */ Ct(bv, [["render", $v]]), ni = (e, t) => {
6771
6779
  }, at = (e, t, n, r) => {
6772
6780
  let a = e ? I(e) : I();
6773
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);
6774
- }, 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({
6775
6783
  menuFocused: !1,
6776
6784
  shiftKeyInMenu: !1
6777
6785
  }), zi = () => {
@@ -6917,7 +6925,7 @@ function Io(e, t, n) {
6917
6925
  }
6918
6926
  if (Bv(e)) {
6919
6927
  t = new Date(t || Date.now());
6920
- 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);
6921
6929
  return -y;
6922
6930
  }
6923
6931
  return NaN;
@@ -7006,19 +7014,19 @@ function go(e, t) {
7006
7014
  return new Date(e);
7007
7015
  if (!(typeof e == "string" || Object.prototype.toString.call(e) === "[object String]"))
7008
7016
  return new Date(NaN);
7009
- var a = Uv(e), o = Lv(a.date, r), l = o.year, u = o.restDateString, f = Vv(u, l);
7010
- 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))
7011
7019
  return new Date(NaN);
7012
- if (f) {
7013
- var y = f.getTime(), w = 0, d;
7014
- 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)))
7015
7023
  return new Date(NaN);
7016
7024
  if (a.timeZone || n.timeZone) {
7017
- 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))
7018
7026
  return new Date(NaN);
7019
7027
  } else
7020
- d = ri(new Date(y + w)), d = ri(new Date(y + w + d));
7021
- 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);
7022
7030
  } else
7023
7031
  return new Date(NaN);
7024
7032
  }
@@ -7072,8 +7080,8 @@ function Vv(e, t) {
7072
7080
  return o = parseInt(n[1], 10) - 1, ci(t, o) ? ui(t, o) : new Date(NaN);
7073
7081
  if (n = Ke.WwwD.exec(e), n) {
7074
7082
  o = parseInt(n[1], 10) - 1;
7075
- var f = parseInt(n[2], 10) - 1;
7076
- 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);
7077
7085
  }
7078
7086
  return null;
7079
7087
  }
@@ -7209,13 +7217,13 @@ const Zv = (e, t = 3) => {
7209
7217
  text: n.format(r),
7210
7218
  value: a
7211
7219
  }));
7212
- }, 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) => {
7213
7221
  const t = c(e);
7214
7222
  return t != null && t.$el ? t == null ? void 0 : t.$el : t;
7215
7223
  }, nh = (e) => Object.assign({ type: "dot" }, e), Xi = (e) => Array.isArray(e) ? !!e[0] && !!e[1] : !1, Ir = {
7216
7224
  prop: (e) => `"${e}" prop must be enabled!`,
7217
7225
  dateArr: (e) => `You need to use array as "model-value" binding in order to support "${e}"`
7218
- }, 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(
7219
7227
  {
7220
7228
  menuAppear: "dp-menu-appear",
7221
7229
  open: "dp-slide-down",
@@ -7276,20 +7284,20 @@ const Zv = (e, t = 3) => {
7276
7284
  return e.format(i);
7277
7285
  const T = v || o(), D = e.formatLocale ? { locale: e.formatLocale } : void 0;
7278
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);
7279
- }, 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) => {
7280
7288
  var v;
7281
7289
  return (v = e.hideNavigation) == null ? void 0 : v.includes(i);
7282
- }), w = (i) => {
7283
- 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];
7284
7292
  return !(v || T || D || U || _ || h || G);
7285
- }, d = (i) => {
7293
+ }, f = (i) => {
7286
7294
  const v = {
7287
7295
  hours: pt(I()),
7288
7296
  minutes: yt(I()),
7289
7297
  seconds: Yt(I())
7290
7298
  };
7291
7299
  return Object.assign(v, i);
7292
- }, 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) => {
7293
7301
  const v = la(u(i), { weekStartsOn: +e.weekStart }), T = Ls(u(i), { weekStartsOn: +e.weekStart });
7294
7302
  return [v, T];
7295
7303
  }, M = (i, v) => Array.isArray(v) ? v.some((T) => Se(u(I(T)), u(i))) : v(i), V = (i, v, T) => {
@@ -7318,7 +7326,7 @@ const Zv = (e, t = 3) => {
7318
7326
  if (!i || k())
7319
7327
  return !0;
7320
7328
  const T = !e.minDate && !e.maxDate ? P(i) : i;
7321
- 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;
7322
7330
  }, L = (i, v) => {
7323
7331
  const T = I(JSON.parse(JSON.stringify(i))), D = [];
7324
7332
  for (let U = 0; U < 7; U++) {
@@ -7332,37 +7340,37 @@ const Zv = (e, t = 3) => {
7332
7340
  }
7333
7341
  return D;
7334
7342
  }, Q = (i, v) => {
7335
- 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) => {
7336
- 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);
7337
7345
  if (T.push({ days: _ }), !T[T.length - 1].days.some(
7338
7346
  (B) => Se(ft(B.value), ft(U))
7339
7347
  )) {
7340
- const B = gt(ce, 7);
7348
+ const B = gt(fe, 7);
7341
7349
  G(B);
7342
7350
  }
7343
7351
  };
7344
7352
  if (G(h), e.sixWeeks && T.length < 6) {
7345
- const ce = 6 - T.length;
7346
- for (let _ = 1; _ <= ce; _++) {
7353
+ const fe = 6 - T.length;
7354
+ for (let _ = 1; _ <= fe; _++) {
7347
7355
  const B = T[T.length - 1], xe = B.days[B.days.length - 1], he = L(gt(xe.value, 1), Te(D));
7348
7356
  T.push({ days: he });
7349
7357
  }
7350
7358
  }
7351
7359
  return T;
7352
- }, 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) => {
7353
7361
  let D = !1;
7354
- 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;
7355
7363
  };
7356
7364
  return {
7357
7365
  checkPartialRangeValue: t,
7358
7366
  checkRangeEnabled: r,
7359
7367
  getZonedDate: u,
7360
- getZonedToUtc: f,
7368
+ getZonedToUtc: d,
7361
7369
  formatDate: l,
7362
7370
  getDefaultPattern: o,
7363
- validateDate: w,
7371
+ validateDate: O,
7364
7372
  getDefaultStartTime: s,
7365
- isDisabled: g,
7373
+ isDisabled: b,
7366
7374
  isValidDate: C,
7367
7375
  sanitizeDate: S,
7368
7376
  getWeekFromDate: F,
@@ -7372,9 +7380,9 @@ const Zv = (e, t = 3) => {
7372
7380
  getCalendarDays: Q,
7373
7381
  validateMonthYearInRange: (i, v, T, D) => {
7374
7382
  let U = !1;
7375
- 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;
7376
7384
  },
7377
- validateMaxDate: b,
7385
+ validateMaxDate: g,
7378
7386
  validateMinDate: Y,
7379
7387
  defaults: n,
7380
7388
  hideNavigationButtons: y
@@ -7390,21 +7398,21 @@ const Zv = (e, t = 3) => {
7390
7398
  1: []
7391
7399
  },
7392
7400
  monthPicker: []
7393
- }), Jr = W(null), on = W(!1), ea = W(!1), ta = W(!1), na = W(!1), ze = W(0), Ue = W(0), Ot = () => {
7394
- 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 ? [
7395
7403
  ...Pe.timePicker[0],
7396
7404
  ...Pe.timePicker[1],
7397
7405
  na.value ? [] : [Jr.value],
7398
7406
  Pe.actionRow
7399
- ].filter((d) => d.length) : ta.value ? [...Pe.monthPicker, Pe.actionRow] : [Pe.monthYear, ...Pe.calendar, Pe.time, Pe.actionRow].filter((d) => d.length)), t = (d) => {
7400
- 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;
7401
7409
  let s = null;
7402
- e.value[Ue.value] && (s = e.value[Ue.value][ze.value]), s || (ze.value = d ? ze.value - 1 : ze.value + 1);
7403
- }, n = (d) => {
7404
- 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);
7405
- }, 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) => {
7406
7414
  let s = null;
7407
- 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;
7408
7416
  }, a = () => {
7409
7417
  t(!0), r(!0);
7410
7418
  }, o = () => {
@@ -7413,37 +7421,37 @@ const Zv = (e, t = 3) => {
7413
7421
  n(!1), r(!0);
7414
7422
  }, u = () => {
7415
7423
  n(!0), r(!0);
7416
- }, f = (d, s) => {
7417
- Pe[s] = d;
7418
- }, y = (d, s) => {
7419
- Pe[s] = d;
7420
- }, w = () => {
7421
- 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;
7422
7430
  };
7423
7431
  return {
7424
- buildMatrix: f,
7432
+ buildMatrix: d,
7425
7433
  buildMultiLevelMatrix: y,
7426
- setTimePickerBackRef: (d) => {
7427
- Jr.value = d;
7434
+ setTimePickerBackRef: (f) => {
7435
+ Jr.value = f;
7428
7436
  },
7429
- setSelectionGrid: (d) => {
7430
- on.value = d, w(), d || (Pe.selectionGrid = []);
7437
+ setSelectionGrid: (f) => {
7438
+ on.value = f, O(), f || (Pe.selectionGrid = []);
7431
7439
  },
7432
- setTimePicker: (d, s = !1) => {
7433
- 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] = []);
7434
7442
  },
7435
- setTimePickerElements: (d, s = 0) => {
7436
- Pe.timePicker[s] = d;
7443
+ setTimePickerElements: (f, s = 0) => {
7444
+ Pe.timePicker[s] = f;
7437
7445
  },
7438
7446
  arrowRight: a,
7439
7447
  arrowLeft: o,
7440
7448
  arrowUp: l,
7441
7449
  arrowDown: u,
7442
7450
  clearArrowNav: () => {
7443
- 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;
7444
7452
  },
7445
- setMonthPicker: (d) => {
7446
- ta.value = d, w();
7453
+ setMonthPicker: (f) => {
7454
+ ta.value = f, O();
7447
7455
  },
7448
7456
  refSets: Pe
7449
7457
  };
@@ -7452,16 +7460,16 @@ const Zv = (e, t = 3) => {
7452
7460
  getDefaultStartTime: o,
7453
7461
  isDisabled: l,
7454
7462
  sanitizeDate: u,
7455
- getWeekFromDate: f,
7463
+ getWeekFromDate: d,
7456
7464
  setDateMonthOrYear: y,
7457
- validateMonthYearInRange: w,
7458
- defaults: d
7465
+ validateMonthYearInRange: O,
7466
+ defaults: f
7459
7467
  } = rt(e), s = H({
7460
7468
  get: () => e.internalModelValue,
7461
7469
  set: (p) => {
7462
7470
  !e.readonly && !e.disabled && t("update:internal-model-value", p);
7463
7471
  }
7464
- }), g = W([]);
7472
+ }), b = W([]);
7465
7473
  ct(s, () => {
7466
7474
  e.multiCalendars || te();
7467
7475
  });
@@ -7480,7 +7488,7 @@ const Zv = (e, t = 3) => {
7480
7488
  S[p] = A;
7481
7489
  };
7482
7490
  et(() => {
7483
- 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);
7484
7492
  });
7485
7493
  const te = (p = !1) => {
7486
7494
  if (s.value)
@@ -7491,11 +7499,11 @@ const Zv = (e, t = 3) => {
7491
7499
  return Q();
7492
7500
  if (e.yearPicker && !e.range)
7493
7501
  return le();
7494
- if (d.value.multiCalendars && p && !e.startDate)
7502
+ if (f.value.multiCalendars && p && !e.startDate)
7495
7503
  return k(I(), p);
7496
7504
  }, k = (p, A = !1) => {
7497
- if ((!d.value.multiCalendars || !e.multiStatic || A) && R(0, Te(p), De(p)), d.value.multiCalendars)
7498
- 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++) {
7499
7507
  const re = qe(I(), { month: F.value(ee - 1), year: M.value(ee - 1) }), $e = gi(re, { months: 1 });
7500
7508
  C.value[ee] = { month: Te($e), year: De($e) };
7501
7509
  }
@@ -7517,9 +7525,9 @@ const Zv = (e, t = 3) => {
7517
7525
  }
7518
7526
  }, X = (p) => {
7519
7527
  const A = s.value;
7520
- K(A, p), d.value.multiCalendars && e.multiCalendarsSolo && i();
7528
+ K(A, p), f.value.multiCalendars && e.multiCalendarsSolo && i();
7521
7529
  }, L = () => {
7522
- if (b(), !e.range)
7530
+ if (g(), !e.range)
7523
7531
  s.value = at(I(), S.hours, S.minutes, Y());
7524
7532
  else {
7525
7533
  const p = S.hours, A = S.minutes;
@@ -7532,7 +7540,7 @@ const Zv = (e, t = 3) => {
7532
7540
  s.value = y(I(), F.value(0), M.value(0));
7533
7541
  }, le = () => {
7534
7542
  s.value = I();
7535
- }, 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 = () => {
7536
7544
  const p = o();
7537
7545
  if (p) {
7538
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;
@@ -7550,8 +7558,8 @@ const Zv = (e, t = 3) => {
7550
7558
  return { month: Te(A), year: De(A) };
7551
7559
  }, T = (p) => {
7552
7560
  const A = Te(I(p)), ee = De(I(p));
7553
- if (R(0, A, ee), d.value.multiCalendars > 0)
7554
- 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++) {
7555
7563
  const $e = v(
7556
7564
  qe(I(p), { year: F.value(re - 1), month: M.value(re - 1) })
7557
7565
  );
@@ -7580,42 +7588,42 @@ const Zv = (e, t = 3) => {
7580
7588
  return $e <= +e.maxRange;
7581
7589
  }
7582
7590
  return !0;
7583
- }, 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 = () => {
7584
7592
  e.autoApply && V.value && t("auto-apply");
7585
7593
  }, _ = () => {
7586
7594
  e.autoApply && t("select-date");
7587
- }, 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) => {
7588
7596
  const A = at(I(p.value), S.hours, S.minutes, Y());
7589
- e.multiDates ? D(A) : s.value = A, n(), ce();
7597
+ e.multiDates ? D(A) : s.value = A, n(), fe();
7590
7598
  }, ue = () => {
7591
- 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 = []);
7592
7600
  }, Re = (p, A) => {
7593
7601
  const ee = [I(p.value), gt(I(p.value), +e.autoRange)];
7594
- B(ee) && (A && T(p.value), g.value = ee);
7602
+ B(ee) && (A && T(p.value), b.value = ee);
7595
7603
  }, tt = (p) => {
7596
- g.value = G(I(p.value));
7597
- }, 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) => {
7598
7606
  if (ue(), e.autoRange)
7599
7607
  return Re(p, A);
7600
7608
  if (e.fixedStart || e.fixedEnd)
7601
7609
  return tt(p);
7602
- 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);
7603
7611
  }, ke = (p) => {
7604
- g.value[p] = at(
7605
- g.value[p],
7612
+ b.value[p] = at(
7613
+ b.value[p],
7606
7614
  S.hours[p],
7607
7615
  S.minutes[p],
7608
7616
  Y(p !== 1)
7609
7617
  );
7610
7618
  }, be = () => {
7611
- 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"));
7612
7620
  }, Ut = (p, A = !1) => {
7613
7621
  if (!(l(p.value) || !p.current && e.hideOffsetDates)) {
7614
7622
  if (e.weekPicker)
7615
7623
  return xe(p);
7616
7624
  if (!e.range)
7617
7625
  return he(p);
7618
- 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());
7619
7627
  }
7620
7628
  }, dt = (p) => {
7621
7629
  const A = p.find((ee) => ee.current);
@@ -7625,17 +7633,17 @@ const Zv = (e, t = 3) => {
7625
7633
  const ee = Et(qe(I(), { month: F.value(A + 1), year: M.value(A + 1) }), 1);
7626
7634
  R(A, Te(ee), De(ee));
7627
7635
  }
7628
- for (let A = p + 1; A <= d.value.multiCalendars - 1; A++) {
7636
+ for (let A = p + 1; A <= f.value.multiCalendars - 1; A++) {
7629
7637
  const ee = st(qe(I(), { month: F.value(A - 1), year: M.value(A - 1) }), 1);
7630
7638
  R(A, Te(ee), De(ee));
7631
7639
  }
7632
7640
  }, kt = (p) => y(I(), F.value(p), M.value(p)), Vt = (p) => at(p, S.hours, S.minutes, Y()), Ur = (p, A) => {
7633
7641
  const ee = e.monthPicker ? F.value(p) !== A.month || !A.fromNav : M.value(p) !== A.year;
7634
- 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)
7635
7643
  if (e.range) {
7636
7644
  if (ee) {
7637
7645
  let re = s.value ? s.value.slice() : [];
7638
- 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;
7639
7647
  }
7640
7648
  } else
7641
7649
  s.value = kt(p);
@@ -7649,7 +7657,7 @@ const Zv = (e, t = 3) => {
7649
7657
  n();
7650
7658
  }, en = (p, A) => {
7651
7659
  const ee = qe(I(), { month: F.value(A), year: M.value(A) }), re = p < 0 ? st(ee, 1) : Et(ee, 1);
7652
- 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());
7653
7661
  }, Ht = (p) => {
7654
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");
7655
7663
  }, Vr = (p, A = !0, ee = !1) => {
@@ -7692,7 +7700,7 @@ const Zv = (e, t = 3) => {
7692
7700
  handleArrow: Fr,
7693
7701
  handleSwipe: tn,
7694
7702
  selectCurrentDate: () => {
7695
- 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(), _();
7696
7704
  },
7697
7705
  presetDateRange: (p, A) => {
7698
7706
  A || p.length && p.length <= 2 && e.range && (s.value = p.map((ee) => I(ee)), _());
@@ -7704,12 +7712,12 @@ const Zv = (e, t = 3) => {
7704
7712
  getZonedDate: o,
7705
7713
  formatDate: l,
7706
7714
  getDefaultPattern: u,
7707
- checkRangeEnabled: f,
7715
+ checkRangeEnabled: d,
7708
7716
  checkPartialRangeValue: y,
7709
- isValidDate: w,
7710
- setDateMonthOrYear: d,
7717
+ isValidDate: O,
7718
+ setDateMonthOrYear: f,
7711
7719
  defaults: s
7712
- } = rt(t), g = W("");
7720
+ } = rt(t), b = W("");
7713
7721
  ct(r, () => {
7714
7722
  e("internal-model-change", r.value);
7715
7723
  });
@@ -7720,16 +7728,16 @@ const Zv = (e, t = 3) => {
7720
7728
  minutes: yt(G),
7721
7729
  seconds: t.enableSeconds ? Yt(G) : 0
7722
7730
  };
7723
- }, 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(() => [
7724
7732
  St(I(), h[0]),
7725
7733
  h[1] ? St(I(), h[1]) : y()
7726
7734
  ]) : St(I(), +h), M = (h) => Array.isArray(h) ? [
7727
7735
  at(null, +h[0].hours, +h[0].minutes, h[0].seconds),
7728
7736
  at(null, +h[1].hours, +h[1].minutes, h[1].seconds)
7729
- ] : at(null, h.hours, h.minutes, h == null ? void 0 : h.seconds), V = (h) => Array.isArray(h) ? f(() => [
7730
- d(null, +h[0].month, +h[0].year),
7731
- h[1] ? d(null, +h[1].month, +h[1].year) : y()
7732
- ]) : 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) => {
7733
7741
  if (Array.isArray(h))
7734
7742
  return h.map((G) => i(G));
7735
7743
  throw new Error(Ir.dateArr("multi-dates"));
@@ -7737,7 +7745,7 @@ const Zv = (e, t = 3) => {
7737
7745
  if (Array.isArray(h))
7738
7746
  return [I(h[0]), I(h[1])];
7739
7747
  throw new Error(Ir.dateArr("week-picker"));
7740
- }, 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(() => [
7741
7749
  i(h[0]),
7742
7750
  h[1] ? i(h[1]) : y()
7743
7751
  ]) : i(h), k = () => {
@@ -7748,24 +7756,24 @@ const Zv = (e, t = 3) => {
7748
7756
  v(h[0]),
7749
7757
  h[1] ? v(h[1]) : y()
7750
7758
  ];
7751
- }, 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) => {
7752
7760
  const G = L(h);
7753
- 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 = "");
7754
7762
  }, le = () => {
7755
7763
  var h;
7756
- const G = (ce) => {
7764
+ const G = (fe) => {
7757
7765
  var _;
7758
- return Xt(ce, (_ = s.value.textInputOptions) == null ? void 0 : _.format);
7766
+ return Xt(fe, (_ = s.value.textInputOptions) == null ? void 0 : _.format);
7759
7767
  };
7760
7768
  return `${G(r.value[0])} ${(h = s.value.textInputOptions) == null ? void 0 : h.rangeSeparator} ${r.value[1] ? G(r.value[1]) : ""}`;
7761
7769
  }, Y = () => {
7762
7770
  var h;
7763
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);
7764
- }, b = () => {
7772
+ }, g = () => {
7765
7773
  var h;
7766
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) : "";
7767
7775
  }, z = () => {
7768
- !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);
7769
7777
  }, i = (h) => {
7770
7778
  if (t.utc) {
7771
7779
  const G = new Date(h);
@@ -7777,9 +7785,9 @@ const Zv = (e, t = 3) => {
7777
7785
  }, D = (h) => Array.isArray(r.value) ? [
7778
7786
  h(r.value[0]),
7779
7787
  r.value[1] ? h(r.value[1]) : y()
7780
- ] : h(He(r.value)), U = (h) => T(He(D(h)));
7788
+ ] : h(Fe(r.value)), U = (h) => T(Fe(D(h)));
7781
7789
  return {
7782
- inputValue: g,
7790
+ inputValue: b,
7783
7791
  internalModelValue: r,
7784
7792
  checkBeforeEmit: () => r.value ? t.range ? t.partialRange ? r.value.length >= 1 : r.value.length === 2 : !!r.value : !1,
7785
7793
  parseExternalModelValue: Q,
@@ -7787,25 +7795,25 @@ const Zv = (e, t = 3) => {
7787
7795
  emitModelValue: () => (z(), t.monthPicker ? U(S) : t.timePicker ? U(C) : t.yearPicker ? U(De) : t.weekPicker ? T(r.value) : T(X()))
7788
7796
  };
7789
7797
  }, fh = (e, t) => {
7790
- const { validateMonthYearInRange: n, validateMaxDate: r, validateMinDate: a, defaults: o } = rt(e), l = (d, s) => {
7791
- let g = d;
7792
- return o.value.filters.months.includes(Te(g)) ? (g = s ? st(d, 1) : Et(d, 1), l(g, s)) : g;
7793
- }, u = (d, s) => {
7794
- let g = d;
7795
- return o.value.filters.years.includes(De(g)) ? (g = s ? wi(d, 1) : Em(d, 1), u(g, s)) : g;
7796
- }, 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) => {
7797
7805
  const s = qe(new Date(), { month: e.month, year: e.year });
7798
- let g = d ? st(s, 1) : Et(s, 1), C = Te(g), S = De(g);
7799
- 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);
7800
- }, y = (d, s) => {
7801
- t("update-month-year", { month: d, year: s });
7802
- }, w = H(() => (d) => {
7803
- 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)
7804
7812
  return !1;
7805
- const s = qe(new Date(), { month: e.month, year: e.year }), g = d ? st(s, 1) : Et(s, 1), C = [Te(g), De(g)];
7806
- 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);
7807
7815
  });
7808
- return { handleMonthYearChange: f, isDisabled: w, updateMonthYear: y };
7816
+ return { handleMonthYearChange: d, isDisabled: O, updateMonthYear: y };
7809
7817
  };
7810
7818
  var Kn = /* @__PURE__ */ ((e) => (e.center = "center", e.left = "left", e.right = "right", e))(Kn || {});
7811
7819
  const dh = (e, t, n, r) => {
@@ -7823,7 +7831,7 @@ const dh = (e, t, n, r) => {
7823
7831
  left: N.left + window.scrollX,
7824
7832
  top: N.top + window.scrollY
7825
7833
  };
7826
- }, f = (P) => {
7834
+ }, d = (P) => {
7827
7835
  const N = P.getBoundingClientRect();
7828
7836
  let K = 0, X = 0;
7829
7837
  for (; P && !isNaN(P.offsetLeft) && !isNaN(P.offsetTop); )
@@ -7831,23 +7839,23 @@ const dh = (e, t, n, r) => {
7831
7839
  return { top: X, left: K };
7832
7840
  }, y = (P, N) => {
7833
7841
  a.value.left = `${P + N}px`, a.value.transform = "translateX(-100%)";
7834
- }, w = (P) => {
7842
+ }, O = (P) => {
7835
7843
  a.value.left = `${P}px`, a.value.transform = "translateX(0)";
7836
- }, d = (P, N, K = !1) => {
7837
- 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%)");
7838
7846
  }, s = (P) => {
7839
- 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);
7840
7848
  return { top: X, left: L, width: N, height: K };
7841
- }, g = () => {
7842
- const P = Ve(t);
7849
+ }, b = () => {
7850
+ const P = He(t);
7843
7851
  if (P) {
7844
7852
  const { top: N, left: K, width: X, height: L } = s(P);
7845
- 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);
7846
7854
  }
7847
7855
  }, C = () => {
7848
7856
  a.value.left = "50%", a.value.top = "50%", a.value.transform = "translate(-50%, -50%)", a.value.position = "fixed";
7849
7857
  }, S = () => {
7850
- const P = Ve(t);
7858
+ const P = He(t);
7851
7859
  a.value = r.altPosition(P);
7852
7860
  }, F = (P = !0) => {
7853
7861
  if (!r.inline)
@@ -7858,7 +7866,7 @@ const dh = (e, t, n, r) => {
7858
7866
  left: K,
7859
7867
  width: X
7860
7868
  }) => {
7861
- window.screen.width > 768 && d(K, X), j(P, N);
7869
+ window.screen.width > 768 && f(K, X), j(P, N);
7862
7870
  }, V = (P, N) => {
7863
7871
  const { top: K, left: X, height: L, width: Q } = s(P);
7864
7872
  a.value.top = `${L + K + +r.offset}px`, M({ inputEl: P, menuEl: N, left: X, width: Q }), o.value = !1;
@@ -7869,7 +7877,7 @@ const dh = (e, t, n, r) => {
7869
7877
  if (r.autoPosition) {
7870
7878
  const { left: K, width: X } = s(P), { left: L, right: Q } = N.getBoundingClientRect();
7871
7879
  if (L < 0)
7872
- return w(K);
7880
+ return O(K);
7873
7881
  if (Q > document.documentElement.clientWidth)
7874
7882
  return y(K, X);
7875
7883
  }
@@ -7877,11 +7885,11 @@ const dh = (e, t, n, r) => {
7877
7885
  const { height: K } = N.getBoundingClientRect(), { top: X, height: L } = P.getBoundingClientRect(), Q = window.innerHeight - X - L, le = X;
7878
7886
  return K <= Q ? V(P, N) : K > Q && K <= le ? R(P, N) : Q >= le ? V(P, N) : R(P, N);
7879
7887
  }, k = () => {
7880
- const P = Ve(t), N = Ve(e);
7888
+ const P = He(t), N = He(e);
7881
7889
  if (P && N)
7882
7890
  return r.autoPosition ? te(P, N) : V(P, N);
7883
7891
  };
7884
- return { openOnTop: o, menuPosition: a, setMenuPosition: F, setInitialPosition: g };
7892
+ return { openOnTop: o, menuPosition: a, setMenuPosition: F, setInitialPosition: b };
7885
7893
  }, It = [
7886
7894
  { name: "clock-icon", use: ["time", "calendar"] },
7887
7895
  { name: "arrow-left", use: ["month-year", "calendar"] },
@@ -8094,7 +8102,7 @@ const dh = (e, t, n, r) => {
8094
8102
  "blur"
8095
8103
  ],
8096
8104
  setup(e, { expose: t, emit: n }) {
8097
- 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(
8098
8106
  () => ({
8099
8107
  dp__pointer: !r.disabled && !r.readonly && !r.textInput,
8100
8108
  dp__disabled: r.disabled,
@@ -8107,12 +8115,12 @@ const dh = (e, t, n, r) => {
8107
8115
  dp__input_reg: !r.textInput,
8108
8116
  [r.inputClassName]: !!r.inputClassName
8109
8117
  })
8110
- ), d = () => {
8118
+ ), f = () => {
8111
8119
  n("set-input-date", null), r.autoApply && (n("set-empty-date"), u.value = null);
8112
8120
  }, s = (k) => {
8113
8121
  var P;
8114
8122
  return kv(k, ((P = l.value.textInputOptions) == null ? void 0 : P.format) || a());
8115
- }, g = (k) => {
8123
+ }, b = (k) => {
8116
8124
  const { rangeSeparator: P } = l.value.textInputOptions;
8117
8125
  if (r.range) {
8118
8126
  const [N, K] = k.split(`${P}`);
@@ -8128,7 +8136,7 @@ const dh = (e, t, n, r) => {
8128
8136
  }, C = (k) => {
8129
8137
  var P;
8130
8138
  const { value: N } = k.target;
8131
- 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);
8132
8140
  }, S = () => {
8133
8141
  var k, P;
8134
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"));
@@ -8149,11 +8157,11 @@ const dh = (e, t, n, r) => {
8149
8157
  };
8150
8158
  return t({
8151
8159
  focusInput: () => {
8152
- f.value && f.value.focus({ preventScroll: !0 });
8160
+ d.value && d.value.focus({ preventScroll: !0 });
8153
8161
  }
8154
8162
  }), (k, P) => {
8155
8163
  var N;
8156
- return m(), O("div", {
8164
+ return m(), w("div", {
8157
8165
  onClick: V,
8158
8166
  "aria-label": (N = c(l).ariaLabels) == null ? void 0 : N.input,
8159
8167
  role: "textbox",
@@ -8162,7 +8170,7 @@ const dh = (e, t, n, r) => {
8162
8170
  "aria-readonly": k.readonly
8163
8171
  }, [
8164
8172
  k.$slots.trigger && !k.$slots["dp-input"] && !k.inline ? q(k.$slots, "trigger", { key: 0 }) : $("", !0),
8165
- !k.$slots.trigger && (!k.inline || k.inlineWithInput) ? (m(), O("div", vh, [
8173
+ !k.$slots.trigger && (!k.inline || k.inlineWithInput) ? (m(), w("div", vh, [
8166
8174
  k.$slots["dp-input"] && !k.$slots.trigger && !k.inline ? q(k.$slots, "dp-input", {
8167
8175
  key: 0,
8168
8176
  value: e.inputValue,
@@ -8171,13 +8179,13 @@ const dh = (e, t, n, r) => {
8171
8179
  onTab: F,
8172
8180
  onClear: j
8173
8181
  }) : $("", !0),
8174
- k.$slots["dp-input"] ? $("", !0) : (m(), O("input", {
8182
+ k.$slots["dp-input"] ? $("", !0) : (m(), w("input", {
8175
8183
  key: 1,
8176
8184
  ref_key: "inputRef",
8177
- ref: f,
8185
+ ref: d,
8178
8186
  id: k.uid ? `dp-input-${k.uid}` : void 0,
8179
8187
  name: k.name,
8180
- class: ye(c(w)),
8188
+ class: ye(c(O)),
8181
8189
  inputmode: k.textInput ? "text" : "none",
8182
8190
  placeholder: k.placeholder,
8183
8191
  disabled: k.disabled,
@@ -8187,28 +8195,28 @@ const dh = (e, t, n, r) => {
8187
8195
  autocomplete: k.autocomplete,
8188
8196
  onInput: C,
8189
8197
  onKeydown: [
8190
- de(V, ["enter"]),
8191
- de(F, ["tab"])
8198
+ ce(V, ["enter"]),
8199
+ ce(F, ["tab"])
8192
8200
  ],
8193
8201
  onBlur: R,
8194
8202
  onFocus: M,
8195
8203
  onKeypress: te
8196
8204
  }, null, 42, hh)),
8197
- k.$slots["input-icon"] && !k.hideInputIcon ? (m(), O("span", _h, [
8205
+ k.$slots["input-icon"] && !k.hideInputIcon ? (m(), w("span", _h, [
8198
8206
  q(k.$slots, "input-icon")
8199
8207
  ])) : $("", !0),
8200
8208
  !k.$slots["input-icon"] && !k.hideInputIcon && !k.$slots["dp-input"] ? (m(), pe(c(Br), {
8201
8209
  key: 3,
8202
8210
  class: "dp__input_icon dp__input_icons"
8203
8211
  })) : $("", !0),
8204
- 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, [
8205
8213
  q(k.$slots, "clear-icon", { clear: j })
8206
8214
  ])) : $("", !0),
8207
8215
  k.clearable && !k.$slots["clear-icon"] && e.inputValue && !k.disabled && !k.readonly ? (m(), pe(c(Zm), {
8208
8216
  key: 5,
8209
8217
  class: "dp__clear_icon dp__input_icons",
8210
8218
  "data-test": "clear-icon",
8211
- onClick: We(j, ["stop", "prevent"])
8219
+ onClick: Ye(j, ["stop", "prevent"])
8212
8220
  }, null, 8, ["onClick"])) : $("", !0)
8213
8221
  ])) : $("", !0)
8214
8222
  ], 8, mh);
@@ -8224,17 +8232,17 @@ const dh = (e, t, n, r) => {
8224
8232
  },
8225
8233
  emits: ["close-picker", "select-date", "invalid-select"],
8226
8234
  setup(e, { emit: t }) {
8227
- 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);
8228
8236
  et(() => {
8229
- n.arrowNavigation && l([Ve(u), Ve(f)], "actionRow");
8237
+ n.arrowNavigation && l([He(u), He(d)], "actionRow");
8230
8238
  });
8231
- 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(() => ({
8232
8240
  dp__action: !0,
8233
8241
  dp__select: !0,
8234
- dp__action_disabled: w.value
8235
- })), 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 = () => {
8236
8244
  const R = o.value.previewFormat;
8237
- return n.timePicker || n.monthPicker, R(He(n.internalModelValue));
8245
+ return n.timePicker || n.monthPicker, R(Fe(n.internalModelValue));
8238
8246
  }, S = () => {
8239
8247
  const R = n.internalModelValue;
8240
8248
  return o.value.multiCalendars > 0 ? `${r(R[0])} - ${r(R[1])}` : [r(R[0]), r(R[1])];
@@ -8242,30 +8250,30 @@ const dh = (e, t, n, r) => {
8242
8250
  if (!n.monthPicker)
8243
8251
  return !0;
8244
8252
  let j = !0;
8245
- 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);
8246
8254
  }, V = () => {
8247
- 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");
8248
8256
  };
8249
- return (R, j) => (m(), O("div", {
8257
+ return (R, j) => (m(), w("div", {
8250
8258
  class: "dp__action_row",
8251
8259
  style: mt(e.calendarWidth ? { width: `${e.calendarWidth}px` } : {})
8252
8260
  }, [
8253
8261
  R.$slots["action-row"] ? q(R.$slots, "action-row", nt(Be({ key: 0 }, {
8254
8262
  internalModelValue: e.internalModelValue,
8255
- disabled: c(w),
8263
+ disabled: c(O),
8256
8264
  selectDate: () => R.$emit("select-date"),
8257
8265
  closePicker: () => R.$emit("close-picker")
8258
- }))) : (m(), O(ve, { key: 1 }, [
8266
+ }))) : (m(), w(ve, { key: 1 }, [
8259
8267
  E("div", wh, [
8260
8268
  R.$slots["action-preview"] ? q(R.$slots, "action-preview", {
8261
8269
  key: 0,
8262
8270
  value: e.internalModelValue
8263
8271
  }) : $("", !0),
8264
- R.$slots["action-preview"] ? $("", !0) : (m(), O(ve, { key: 1 }, [
8265
- 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 }, [
8266
8274
  Ge(me(c(F)), 1)
8267
8275
  ], 64)),
8268
- 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)
8269
8277
  ], 64))
8270
8278
  ]),
8271
8279
  E("div", Oh, [
@@ -8273,8 +8281,8 @@ const dh = (e, t, n, r) => {
8273
8281
  key: 0,
8274
8282
  value: e.internalModelValue
8275
8283
  }) : $("", !0),
8276
- R.$slots["action-select"] ? $("", !0) : (m(), O(ve, { key: 1 }, [
8277
- R.inline ? $("", !0) : (m(), O("span", {
8284
+ R.$slots["action-select"] ? $("", !0) : (m(), w(ve, { key: 1 }, [
8285
+ R.inline ? $("", !0) : (m(), w("span", {
8278
8286
  key: 0,
8279
8287
  class: "dp__action dp__cancel",
8280
8288
  ref_key: "cancelButtonRef",
@@ -8282,21 +8290,21 @@ const dh = (e, t, n, r) => {
8282
8290
  tabindex: "0",
8283
8291
  onClick: j[0] || (j[0] = (te) => R.$emit("close-picker")),
8284
8292
  onKeydown: [
8285
- j[1] || (j[1] = de((te) => R.$emit("close-picker"), ["enter"])),
8286
- 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"]))
8287
8295
  ]
8288
8296
  }, me(R.cancelText), 545)),
8289
8297
  E("span", {
8290
- class: ye(c(d)),
8298
+ class: ye(c(f)),
8291
8299
  tabindex: "0",
8292
8300
  onKeydown: [
8293
- de(V, ["enter"]),
8294
- de(V, ["space"])
8301
+ ce(V, ["enter"]),
8302
+ ce(V, ["space"])
8295
8303
  ],
8296
8304
  onClick: V,
8297
8305
  "data-test": "select-button",
8298
8306
  ref_key: "selectButtonRef",
8299
- ref: f
8307
+ ref: d
8300
8308
  }, me(R.selectText), 43, $h)
8301
8309
  ], 64))
8302
8310
  ])
@@ -8337,15 +8345,15 @@ const dh = (e, t, n, r) => {
8337
8345
  "handle-space"
8338
8346
  ],
8339
8347
  setup(e, { expose: t, emit: n }) {
8340
- 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));
8341
8349
  et(() => {
8342
- 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 });
8343
8351
  });
8344
- 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) => {
8345
8353
  if (r.transitions) {
8346
8354
  const i = ft(o(I(), r.month, r.year));
8347
- s.value = Xe(ft(o(I(), b, z)), i) ? l.value.transitions[S(!0)] : l.value.transitions[S(!1)], d.value = !1, Mt(() => {
8348
- 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;
8349
8357
  });
8350
8358
  }
8351
8359
  }, M = H(
@@ -8353,74 +8361,74 @@ const dh = (e, t, n, r) => {
8353
8361
  dp__calendar_wrap: !0,
8354
8362
  [r.calendarClassName]: !!r.calendarClassName
8355
8363
  })
8356
- ), V = H(() => (b) => {
8357
- const z = nh(b);
8364
+ ), V = H(() => (g) => {
8365
+ const z = nh(g);
8358
8366
  return {
8359
8367
  dp__marker_dot: z.type === "dot",
8360
8368
  dp__marker_line: z.type === "line"
8361
8369
  };
8362
- }), R = H(() => (b) => Se(b, u.value)), j = H(() => ({
8370
+ }), R = H(() => (g) => Se(g, u.value)), j = H(() => ({
8363
8371
  dp__calendar: !0,
8364
8372
  dp__calendar_next: l.value.multiCalendars > 0 && r.instance !== 0
8365
- })), 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) => {
8366
8374
  var v, T;
8367
- if (n("set-hover-date", b), (T = (v = b.marker) == null ? void 0 : v.tooltip) != null && T.length) {
8368
- 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]);
8369
8377
  if (D) {
8370
8378
  const { width: U, height: h } = D.getBoundingClientRect();
8371
- f.value = {
8379
+ d.value = {
8372
8380
  bottom: `${h}px`,
8373
8381
  left: `${U / 2}px`,
8374
8382
  transform: "translateX(-50%)"
8375
- }, u.value = b.value;
8383
+ }, u.value = g.value;
8376
8384
  }
8377
8385
  }
8378
8386
  }, N = () => {
8379
8387
  u.value = null;
8380
- }, K = (b) => {
8381
- g.value.startX = b.changedTouches[0].screenX, g.value.startY = b.changedTouches[0].screenY;
8382
- }, X = (b) => {
8383
- g.value.endX = b.changedTouches[0].screenX, g.value.endY = b.changedTouches[0].screenY, Q();
8384
- }, L = (b) => {
8385
- 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();
8386
8394
  }, Q = () => {
8387
- const b = r.vertical ? "Y" : "X";
8388
- Math.abs(g.value[`start${b}`] - g.value[`end${b}`]) > 10 && n("handle-swipe", g.value[`start${b}`] > g.value[`end${b}`] ? "right" : "left");
8389
- }, le = (b, z, i) => {
8390
- b && (Array.isArray(y.value[z]) ? y.value[z][i] = b : y.value[z] = [b]), r.arrowNavigation && a(y.value, "calendar");
8391
- }, Y = (b) => {
8392
- 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));
8393
8401
  };
8394
- return t({ triggerTransition: F }), (b, z) => {
8402
+ return t({ triggerTransition: F }), (g, z) => {
8395
8403
  var i;
8396
- return m(), O("div", {
8404
+ return m(), w("div", {
8397
8405
  class: ye(c(j))
8398
8406
  }, [
8399
8407
  E("div", {
8400
8408
  style: mt(c(k))
8401
8409
  }, [
8402
- e.specificMode ? $("", !0) : (m(), O("div", {
8410
+ e.specificMode ? $("", !0) : (m(), w("div", {
8403
8411
  key: 0,
8404
8412
  ref_key: "calendarWrapRef",
8405
- ref: w,
8413
+ ref: O,
8406
8414
  class: ye(c(M)),
8407
8415
  role: "grid",
8408
8416
  "aria-label": (i = c(l).ariaLabels) == null ? void 0 : i.calendarWrap
8409
8417
  }, [
8410
8418
  E("div", Th, [
8411
- b.weekNumbers ? (m(), O("div", Dh, me(b.weekNumName), 1)) : $("", !0),
8412
- (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", {
8413
8421
  class: "dp__calendar_header_item",
8414
8422
  role: "gridcell",
8415
8423
  key: T,
8416
8424
  "data-test": "calendar-header"
8417
8425
  }, [
8418
- b.$slots["calendar-header"] ? q(b.$slots, "calendar-header", {
8426
+ g.$slots["calendar-header"] ? q(g.$slots, "calendar-header", {
8419
8427
  key: 0,
8420
8428
  day: v,
8421
8429
  index: T
8422
8430
  }) : $("", !0),
8423
- b.$slots["calendar-header"] ? $("", !0) : (m(), O(ve, { key: 1 }, [
8431
+ g.$slots["calendar-header"] ? $("", !0) : (m(), w(ve, { key: 1 }, [
8424
8432
  Ge(me(v), 1)
8425
8433
  ], 64))
8426
8434
  ]))), 128))
@@ -8428,28 +8436,28 @@ const dh = (e, t, n, r) => {
8428
8436
  xh,
8429
8437
  Ce(Je, {
8430
8438
  name: s.value,
8431
- css: !!b.transitions
8439
+ css: !!g.transitions
8432
8440
  }, {
8433
8441
  default: ne(() => {
8434
8442
  var v;
8435
8443
  return [
8436
- d.value ? (m(), O("div", {
8444
+ f.value ? (m(), w("div", {
8437
8445
  key: 0,
8438
8446
  class: "dp__calendar",
8439
8447
  role: "grid",
8440
8448
  "aria-label": (v = c(l).ariaLabels) == null ? void 0 : v.calendarDays
8441
8449
  }, [
8442
- (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", {
8443
8451
  class: "dp__calendar_row",
8444
8452
  role: "row",
8445
8453
  key: D
8446
8454
  }, [
8447
- b.weekNumbers ? (m(), O("div", Rh, [
8455
+ g.weekNumbers ? (m(), w("div", Rh, [
8448
8456
  E("div", Mh, me(e.getWeekNum(T.days)), 1)
8449
8457
  ])) : $("", !0),
8450
- (m(!0), O(ve, null, Ae(T.days, (U, h) => {
8451
- var G, ce, _;
8452
- return m(), O("div", {
8458
+ (m(!0), w(ve, null, Ae(T.days, (U, h) => {
8459
+ var G, fe, _;
8460
+ return m(), w("div", {
8453
8461
  role: "gridcell",
8454
8462
  class: "dp__calendar_item",
8455
8463
  ref_for: !0,
@@ -8457,13 +8465,13 @@ const dh = (e, t, n, r) => {
8457
8465
  key: h + D,
8458
8466
  "aria-selected": U.classData.dp__active_date || U.classData.dp__range_start || U.classData.dp__range_start,
8459
8467
  "aria-disabled": U.classData.dp__cell_disabled,
8460
- "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),
8461
8469
  tabindex: "0",
8462
8470
  "data-test": U.value,
8463
- onClick: We((B) => b.$emit("select-date", U), ["stop", "prevent"]),
8471
+ onClick: Ye((B) => g.$emit("select-date", U), ["stop", "prevent"]),
8464
8472
  onKeydown: [
8465
- de((B) => b.$emit("select-date", U), ["enter"]),
8466
- 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"])
8467
8475
  ],
8468
8476
  onMouseover: (B) => P(U, D, h),
8469
8477
  onMouseleave: N
@@ -8471,40 +8479,40 @@ const dh = (e, t, n, r) => {
8471
8479
  E("div", {
8472
8480
  class: ye(["dp__cell_inner", U.classData])
8473
8481
  }, [
8474
- b.$slots.day && c(te)(U) ? q(b.$slots, "day", {
8482
+ g.$slots.day && c(te)(U) ? q(g.$slots, "day", {
8475
8483
  key: 0,
8476
8484
  day: +U.text,
8477
8485
  date: U.value
8478
8486
  }) : $("", !0),
8479
- b.$slots.day ? $("", !0) : (m(), O(ve, { key: 1 }, [
8487
+ g.$slots.day ? $("", !0) : (m(), w(ve, { key: 1 }, [
8480
8488
  Ge(me(U.text), 1)
8481
8489
  ], 64)),
8482
- U.marker && c(te)(U) ? (m(), O("div", {
8490
+ U.marker && c(te)(U) ? (m(), w("div", {
8483
8491
  key: 2,
8484
8492
  class: ye(c(V)(U.marker)),
8485
8493
  style: mt(U.marker.color ? { backgroundColor: U.marker.color } : {})
8486
8494
  }, null, 6)) : $("", !0),
8487
- c(R)(U.value) ? (m(), O("div", {
8495
+ c(R)(U.value) ? (m(), w("div", {
8488
8496
  key: 3,
8489
8497
  class: "dp__marker_tooltip",
8490
- style: mt(f.value)
8498
+ style: mt(d.value)
8491
8499
  }, [
8492
- (_ = U.marker) != null && _.tooltip ? (m(), O("div", {
8500
+ (_ = U.marker) != null && _.tooltip ? (m(), w("div", {
8493
8501
  key: 0,
8494
8502
  class: "dp__tooltip_content",
8495
- onClick: z[0] || (z[0] = We(() => {
8503
+ onClick: z[0] || (z[0] = Ye(() => {
8496
8504
  }, ["stop"]))
8497
8505
  }, [
8498
- (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", {
8499
8507
  key: xe,
8500
8508
  class: "dp__tooltip_text"
8501
8509
  }, [
8502
- b.$slots["marker-tooltip"] ? q(b.$slots, "marker-tooltip", {
8510
+ g.$slots["marker-tooltip"] ? q(g.$slots, "marker-tooltip", {
8503
8511
  key: 0,
8504
8512
  tooltop: B,
8505
8513
  day: U.value
8506
8514
  }) : $("", !0),
8507
- b.$slots["marker-tooltip"] ? $("", !0) : (m(), O(ve, { key: 1 }, [
8515
+ g.$slots["marker-tooltip"] ? $("", !0) : (m(), w(ve, { key: 1 }, [
8508
8516
  E("div", {
8509
8517
  class: "dp__tooltip_mark",
8510
8518
  style: mt(B.color ? { backgroundColor: B.color } : {})
@@ -8538,12 +8546,12 @@ const dh = (e, t, n, r) => {
8538
8546
  emits: ["activate", "set-ref"],
8539
8547
  setup(e, { emit: t }) {
8540
8548
  const n = W(null);
8541
- return et(() => t("set-ref", n)), (r, a) => (m(), O("div", {
8549
+ return et(() => t("set-ref", n)), (r, a) => (m(), w("div", {
8542
8550
  class: "dp__month_year_col_nav",
8543
8551
  onClick: a[0] || (a[0] = (o) => r.$emit("activate")),
8544
8552
  onKeydown: [
8545
- a[1] || (a[1] = de((o) => r.$emit("activate"), ["enter"])),
8546
- 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"]))
8547
8555
  ],
8548
8556
  tabindex: "0",
8549
8557
  role: "button",
@@ -8584,101 +8592,101 @@ const dh = (e, t, n, r) => {
8584
8592
  },
8585
8593
  emits: ["update:model-value", "selected", "toggle", "reset-flow"],
8586
8594
  setup(e, { expose: t, emit: n }) {
8587
- 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);
8588
8596
  Ji(() => {
8589
8597
  y.value = null;
8590
8598
  }), et(() => {
8591
8599
  Mt().then(() => P()), S(), C(!0);
8592
8600
  }), Oo(() => C(!1));
8593
8601
  const C = (Y) => {
8594
- var b;
8595
- 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));
8596
8604
  }, S = () => {
8597
- const Y = Ve(w);
8598
- 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);
8599
8607
  }, F = H(
8600
8608
  () => ({
8601
8609
  dp__overlay: !0
8602
8610
  })
8603
8611
  ), M = H(() => ({
8604
8612
  dp__overlay_col: !0
8605
- })), 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) => {
8606
8614
  var z, i, v;
8607
- 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(
8608
8616
  (U) => Se(
8609
8617
  U,
8610
8618
  St(
8611
- r.monthPicker ? Qt(new Date(), b.value) : new Date(),
8612
- r.monthPicker ? r.year : b.value
8619
+ r.monthPicker ? Qt(new Date(), g.value) : new Date(),
8620
+ r.monthPicker ? r.year : g.value
8613
8621
  )
8614
8622
  )
8615
- ) : V(b);
8623
+ ) : V(g);
8616
8624
  return {
8617
- ...b,
8625
+ ...g,
8618
8626
  className: {
8619
8627
  dp__overlay_cell_active: D,
8620
8628
  dp__overlay_cell: !D,
8621
8629
  dp__overlay_cell_disabled: T,
8622
8630
  dp__overlay_cell_active_disabled: T && D,
8623
8631
  dp__overlay_cell_pad: !0,
8624
- 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
8625
8633
  }
8626
8634
  };
8627
8635
  }))), j = H(
8628
8636
  () => ({
8629
8637
  dp__button: !0,
8630
8638
  dp__overlay_action: !0,
8631
- dp__over_action_scroll: f.value,
8639
+ dp__over_action_scroll: d.value,
8632
8640
  dp__button_bottom: r.autoApply
8633
8641
  })
8634
8642
  ), te = H(() => {
8635
- var Y, b;
8643
+ var Y, g;
8636
8644
  return {
8637
8645
  dp__overlay_container: !0,
8638
8646
  dp__container_flex: ((Y = r.items) == null ? void 0 : Y.length) <= 6,
8639
- 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
8640
8648
  };
8641
8649
  }), k = (Y) => {
8642
- const b = r.maxValue || r.maxValue === 0, z = r.minValue || r.minValue === 0;
8643
- 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;
8644
8652
  }, P = () => {
8645
- const Y = Ve(y);
8653
+ const Y = He(y);
8646
8654
  if (Y) {
8647
- const b = Ve(w);
8648
- 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));
8649
8657
  }
8650
8658
  }, N = (Y) => {
8651
- !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"));
8652
8660
  }, K = (Y) => {
8653
- const b = r.monthPicker ? r.year : Y;
8661
+ const g = r.monthPicker ? r.year : Y;
8654
8662
  return ji(
8655
8663
  r.multiModelValue,
8656
8664
  St(
8657
8665
  r.monthPicker ? Qt(new Date(), s.value || 0) : new Date(),
8658
- r.monthPicker ? b : s.value || b
8666
+ r.monthPicker ? g : s.value || g
8659
8667
  ),
8660
- St(r.monthPicker ? Qt(new Date(), Y) : new Date(), b)
8668
+ St(r.monthPicker ? Qt(new Date(), Y) : new Date(), g)
8661
8669
  );
8662
8670
  }, X = () => {
8663
8671
  n("toggle"), n("reset-flow");
8664
8672
  }, L = () => {
8665
8673
  r.escClose && X();
8666
- }, Q = (Y, b, z, i) => {
8667
- 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()));
8668
8676
  }, le = () => {
8669
- var Y, b;
8670
- const z = (Y = r.headerRefs) != null && Y.length ? [r.headerRefs].concat(d.value) : d.value.concat([r.skipButtonRef ? [] : [g.value]]);
8671
- 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");
8672
8680
  };
8673
- return t({ focusGrid: S }), (Y, b) => {
8681
+ return t({ focusGrid: S }), (Y, g) => {
8674
8682
  var z;
8675
- return m(), O("div", {
8683
+ return m(), w("div", {
8676
8684
  ref_key: "gridWrapRef",
8677
- ref: w,
8685
+ ref: O,
8678
8686
  class: ye(c(F)),
8679
8687
  role: "dialog",
8680
8688
  tabindex: "0",
8681
- onKeydown: de(L, ["esc"])
8689
+ onKeydown: ce(L, ["esc"])
8682
8690
  }, [
8683
8691
  E("div", {
8684
8692
  class: ye(c(te)),
@@ -8687,13 +8695,13 @@ const dh = (e, t, n, r) => {
8687
8695
  E("div", Bh, [
8688
8696
  q(Y.$slots, "header")
8689
8697
  ]),
8690
- Y.$slots.overlay ? q(Y.$slots, "overlay", { key: 0 }) : (m(), O(ve, { key: 1 }, [
8691
- (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", {
8692
8700
  class: "dp__overlay_row",
8693
8701
  key: v,
8694
8702
  role: "row"
8695
8703
  }, [
8696
- (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", {
8697
8705
  role: "gridcell",
8698
8706
  class: ye(c(M)),
8699
8707
  key: T.value,
@@ -8705,8 +8713,8 @@ const dh = (e, t, n, r) => {
8705
8713
  "data-test": T.text,
8706
8714
  onClick: (U) => N(T.value),
8707
8715
  onKeydown: [
8708
- de((U) => N(T.value), ["enter"]),
8709
- de((U) => N(T.value), ["space"])
8716
+ ce((U) => N(T.value), ["enter"]),
8717
+ ce((U) => N(T.value), ["space"])
8710
8718
  ],
8711
8719
  onMouseover: (U) => s.value = T.value
8712
8720
  }, [
@@ -8717,22 +8725,22 @@ const dh = (e, t, n, r) => {
8717
8725
  key: 0,
8718
8726
  item: T
8719
8727
  }) : $("", !0),
8720
- Y.$slots.item ? $("", !0) : (m(), O(ve, { key: 1 }, [
8728
+ Y.$slots.item ? $("", !0) : (m(), w(ve, { key: 1 }, [
8721
8729
  Ge(me(T.text), 1)
8722
8730
  ], 64))
8723
8731
  ], 2)
8724
8732
  ], 42, Yh))), 128))
8725
8733
  ]))), 128)),
8726
- Y.$slots["button-icon"] ? Ye((m(), O("div", {
8734
+ Y.$slots["button-icon"] ? Ue((m(), w("div", {
8727
8735
  key: 0,
8728
8736
  role: "button",
8729
8737
  "aria-label": (z = e.ariaLabels) == null ? void 0 : z.toggleOverlay,
8730
8738
  class: ye(c(j)),
8731
8739
  tabindex: "0",
8732
8740
  ref_key: "toggleButton",
8733
- ref: g,
8741
+ ref: b,
8734
8742
  onClick: X,
8735
- onKeydown: de(X, ["enter"])
8743
+ onKeydown: ce(X, ["enter"])
8736
8744
  }, [
8737
8745
  q(Y.$slots, "button-icon")
8738
8746
  ], 42, Uh)), [
@@ -8768,13 +8776,13 @@ const dh = (e, t, n, r) => {
8768
8776
  emits: ["update:model-value", "toggle", "set-ref"],
8769
8777
  setup(e, { emit: t }) {
8770
8778
  const n = e, { transitionName: r, showTransition: a } = Yr(n.transitions), o = W(null);
8771
- 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, [
8772
8780
  E("div", {
8773
8781
  class: "dp__month_year_select",
8774
- onClick: u[0] || (u[0] = (f) => l.$emit("toggle")),
8782
+ onClick: u[0] || (u[0] = (d) => l.$emit("toggle")),
8775
8783
  onKeydown: [
8776
- u[1] || (u[1] = de((f) => l.$emit("toggle"), ["enter"])),
8777
- 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"]))
8778
8786
  ],
8779
8787
  role: "button",
8780
8788
  "aria-label": e.ariaLabel,
@@ -8804,8 +8812,8 @@ const dh = (e, t, n, r) => {
8804
8812
  hideNavigation: e.hideNavigation
8805
8813
  }, {
8806
8814
  "header-refs": [],
8807
- "onUpdate:modelValue": u[3] || (u[3] = (f) => l.$emit("update:model-value", f)),
8808
- 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"))
8809
8817
  }), Ze({
8810
8818
  "button-icon": ne(() => [
8811
8819
  l.$slots["calendar-icon"] ? q(l.$slots, "calendar-icon", { key: 0 }) : $("", !0),
@@ -8815,8 +8823,8 @@ const dh = (e, t, n, r) => {
8815
8823
  }, [
8816
8824
  l.$slots[e.slotName] ? {
8817
8825
  name: "item",
8818
- fn: ne(({ item: f }) => [
8819
- q(l.$slots, e.slotName, { item: f })
8826
+ fn: ne(({ item: d }) => [
8827
+ q(l.$slots, e.slotName, { item: d })
8820
8828
  ]),
8821
8829
  key: "0"
8822
8830
  } : void 0,
@@ -8853,7 +8861,7 @@ const dh = (e, t, n, r) => {
8853
8861
  },
8854
8862
  emits: ["update-month-year", "month-year-select", "mount", "reset-flow", "overlay-closed"],
8855
8863
  setup(e, { expose: t, emit: n }) {
8856
- 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);
8857
8865
  et(() => {
8858
8866
  n("mount");
8859
8867
  });
@@ -8869,7 +8877,7 @@ const dh = (e, t, n, r) => {
8869
8877
  }, te = H(() => r.monthPicker ? Array.isArray(r.disabledDates) ? r.disabledDates.map((_) => I(_)).filter((_) => j(_)).map((_) => Te(_)) : [] : []), k = H(() => (_) => {
8870
8878
  const B = _ === "month";
8871
8879
  return {
8872
- showSelectionGrid: (B ? d : s).value,
8880
+ showSelectionGrid: (B ? f : s).value,
8873
8881
  items: (B ? z : i).value,
8874
8882
  disabledValues: a.value.filters[B ? "months" : "years"].concat(te.value),
8875
8883
  minValue: (B ? X : N).value,
@@ -8888,7 +8896,7 @@ const dh = (e, t, n, r) => {
8888
8896
  year: r.year,
8889
8897
  items: _ === "month" ? r.months : r.years,
8890
8898
  instance: r.instance,
8891
- updateMonthYear: w,
8899
+ updateMonthYear: O,
8892
8900
  toggle: _ === "month" ? D : U
8893
8901
  })), N = H(() => r.minDate ? De(I(r.minDate)) : null), K = H(() => r.maxDate ? De(I(r.maxDate)) : null), X = H(() => {
8894
8902
  if (r.minDate && N.value) {
@@ -8905,8 +8913,8 @@ const dh = (e, t, n, r) => {
8905
8913
  xe.push(he(Re));
8906
8914
  }
8907
8915
  return B ? xe.reverse() : xe;
8908
- }, 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) => {
8909
- 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");
8910
8918
  }, U = (_ = !1) => {
8911
8919
  h(_), s.value = !s.value, s.value || n("overlay-closed");
8912
8920
  }, h = (_) => {
@@ -8917,23 +8925,23 @@ const dh = (e, t, n, r) => {
8917
8925
  month: r.month,
8918
8926
  fromNav: !0
8919
8927
  });
8920
- }, ce = (_, B) => {
8921
- r.arrowNavigation && (g.value[B] = Ve(_), u(g.value, "monthYear"));
8928
+ }, fe = (_, B) => {
8929
+ r.arrowNavigation && (b.value[B] = He(_), u(b.value, "monthYear"));
8922
8930
  };
8923
8931
  return t({
8924
8932
  toggleMonthPicker: D,
8925
8933
  toggleYearPicker: U
8926
8934
  }), (_, B) => {
8927
8935
  var xe, he, ue, Re, tt;
8928
- return m(), O("div", Vh, [
8929
- _.$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 }, [
8930
- !_.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 }, [
8931
8939
  c(v) && !_.vertical ? (m(), pe(ra, {
8932
8940
  key: 0,
8933
8941
  "aria-label": (xe = c(a).ariaLabels) == null ? void 0 : xe.prevMonth,
8934
8942
  disabled: c(y)(!1),
8935
- onActivate: B[0] || (B[0] = (se) => c(f)(!1)),
8936
- 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))
8937
8945
  }, {
8938
8946
  default: ne(() => [
8939
8947
  _.$slots["arrow-left"] ? q(_.$slots, "arrow-left", { key: 0 }) : $("", !0),
@@ -8951,12 +8959,12 @@ const dh = (e, t, n, r) => {
8951
8959
  "onUpdate:modelValue": B[2] || (B[2] = (se) => lt(V) ? V.value = se : null)
8952
8960
  }, c(k)("month"), {
8953
8961
  onToggle: D,
8954
- onSetRef: B[3] || (B[3] = (se) => ce(se, 1))
8962
+ onSetRef: B[3] || (B[3] = (se) => fe(se, 1))
8955
8963
  }), Ze({
8956
8964
  default: ne(() => [
8957
- _.$slots.month ? q(_.$slots, "month", nt(Be({ key: 0 }, c(b)))) : $("", !0),
8958
- _.$slots.month ? $("", !0) : (m(), O(ve, { key: 1 }, [
8959
- 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)
8960
8968
  ], 64))
8961
8969
  ]),
8962
8970
  _: 2
@@ -9002,14 +9010,14 @@ const dh = (e, t, n, r) => {
9002
9010
  "onUpdate:modelValue": B[4] || (B[4] = (se) => lt(R) ? R.value = se : null)
9003
9011
  }, c(k)("year"), {
9004
9012
  onToggle: U,
9005
- onSetRef: B[5] || (B[5] = (se) => ce(se, 2))
9013
+ onSetRef: B[5] || (B[5] = (se) => fe(se, 2))
9006
9014
  }), Ze({
9007
9015
  default: ne(() => [
9008
9016
  _.$slots.year ? q(_.$slots, "year", {
9009
9017
  key: 0,
9010
9018
  year: e.year
9011
9019
  }) : $("", !0),
9012
- _.$slots.year ? $("", !0) : (m(), O(ve, { key: 1 }, [
9020
+ _.$slots.year ? $("", !0) : (m(), w(ve, { key: 1 }, [
9013
9021
  Ge(me(e.year), 1)
9014
9022
  ], 64))
9015
9023
  ]),
@@ -9052,7 +9060,7 @@ const dh = (e, t, n, r) => {
9052
9060
  key: 1,
9053
9061
  "aria-label": (Re = c(a).ariaLabels) == null ? void 0 : Re.prevMonth,
9054
9062
  disabled: c(y)(!1),
9055
- onActivate: B[6] || (B[6] = (se) => c(f)(!1))
9063
+ onActivate: B[6] || (B[6] = (se) => c(d)(!1))
9056
9064
  }, {
9057
9065
  default: ne(() => [
9058
9066
  _.$slots["arrow-up"] ? q(_.$slots, "arrow-up", { key: 0 }) : $("", !0),
@@ -9065,8 +9073,8 @@ const dh = (e, t, n, r) => {
9065
9073
  ref: "rightIcon",
9066
9074
  disabled: c(y)(!0),
9067
9075
  "aria-label": (tt = c(a).ariaLabels) == null ? void 0 : tt.nextMonth,
9068
- onActivate: B[7] || (B[7] = (se) => c(f)(!0)),
9069
- 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))
9070
9078
  }, {
9071
9079
  default: ne(() => [
9072
9080
  _.$slots[_.vertical ? "arrow-down" : "arrow-right"] ? q(_.$slots, _.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : $("", !0),
@@ -9086,7 +9094,7 @@ const dh = (e, t, n, r) => {
9086
9094
  onSelected: B[18] || (B[18] = (se) => _.$emit("overlay-closed"))
9087
9095
  }), Ze({
9088
9096
  header: ne(() => {
9089
- var se, fe, ke;
9097
+ var se, de, ke;
9090
9098
  return [
9091
9099
  E("div", Fh, [
9092
9100
  E("div", {
@@ -9095,7 +9103,7 @@ const dh = (e, t, n, r) => {
9095
9103
  ref_key: "mpPrevIconRef",
9096
9104
  ref: C,
9097
9105
  onClick: B[9] || (B[9] = (be) => G(!1)),
9098
- onKeydown: B[10] || (B[10] = de((be) => G(!1), ["enter"]))
9106
+ onKeydown: B[10] || (B[10] = ce((be) => G(!1), ["enter"]))
9099
9107
  }, [
9100
9108
  E("div", {
9101
9109
  class: ye(["dp__inner_nav", { dp__inner_nav_disabled: c(y)(!1) }]),
@@ -9111,16 +9119,16 @@ const dh = (e, t, n, r) => {
9111
9119
  role: "button",
9112
9120
  ref_key: "mpYearButtonRef",
9113
9121
  ref: S,
9114
- "aria-label": (fe = c(a).ariaLabels) == null ? void 0 : fe.openYearsOverlay,
9122
+ "aria-label": (de = c(a).ariaLabels) == null ? void 0 : de.openYearsOverlay,
9115
9123
  tabindex: "0",
9116
9124
  onClick: B[11] || (B[11] = () => U(!1)),
9117
- onKeydown: B[12] || (B[12] = de(() => U(!1), ["enter"]))
9125
+ onKeydown: B[12] || (B[12] = ce(() => U(!1), ["enter"]))
9118
9126
  }, [
9119
9127
  _.$slots.year ? q(_.$slots, "year", {
9120
9128
  key: 0,
9121
9129
  year: e.year
9122
9130
  }) : $("", !0),
9123
- _.$slots.year ? $("", !0) : (m(), O(ve, { key: 1 }, [
9131
+ _.$slots.year ? $("", !0) : (m(), w(ve, { key: 1 }, [
9124
9132
  Ge(me(e.year), 1)
9125
9133
  ], 64))
9126
9134
  ], 40, jh),
@@ -9130,7 +9138,7 @@ const dh = (e, t, n, r) => {
9130
9138
  ref_key: "mpNextIconRef",
9131
9139
  ref: F,
9132
9140
  onClick: B[13] || (B[13] = (be) => G(!0)),
9133
- onKeydown: B[14] || (B[14] = de((be) => G(!0), ["enter"]))
9141
+ onKeydown: B[14] || (B[14] = ce((be) => G(!0), ["enter"]))
9134
9142
  }, [
9135
9143
  E("div", {
9136
9144
  class: ye(["dp__inner_nav", { dp__inner_nav_disabled: c(y)(!0) }]),
@@ -9237,15 +9245,15 @@ const dh = (e, t, n, r) => {
9237
9245
  "overlay-closed"
9238
9246
  ],
9239
9247
  setup(e, { expose: t, emit: n }) {
9240
- 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({
9241
9249
  hours: !1,
9242
9250
  minutes: !1,
9243
9251
  seconds: !1
9244
- }), w = W("AM"), d = W(null), s = W([]);
9252
+ }), O = W("AM"), f = W(null), s = W([]);
9245
9253
  et(() => {
9246
9254
  n("mounted");
9247
9255
  });
9248
- 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(
9249
9257
  () => ({
9250
9258
  dp__time_col: !0,
9251
9259
  dp__time_col_reg: !r.enableSeconds && r.is24,
@@ -9274,52 +9282,52 @@ const dh = (e, t, n, r) => {
9274
9282
  N(i) || (y[i] = !y[i], y[i] || n("overlay-closed"));
9275
9283
  }, X = (i) => i === "hours" ? pt : i === "minutes" ? yt : Yt, L = (i, v = !0) => {
9276
9284
  const T = v ? S : F;
9277
- (v ? g.value(i) : C.value(i)) || n(
9285
+ (v ? b.value(i) : C.value(i)) || n(
9278
9286
  `update:${i}`,
9279
9287
  X(i)(T({ [i]: +r[i] }, { [i]: +r[`${i}Increment`] }))
9280
9288
  );
9281
- }, Q = (i) => r.is24 ? i : (i >= 12 ? w.value = "PM" : w.value = "AM", th(i)), le = () => {
9282
- 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));
9283
9291
  }, Y = (i) => {
9284
9292
  y[i] = !0;
9285
- }, b = (i, v, T) => {
9293
+ }, g = (i, v, T) => {
9286
9294
  if (i && r.arrowNavigation) {
9287
9295
  Array.isArray(s.value[v]) ? s.value[v][T] = i : s.value[v] = [i];
9288
9296
  const D = s.value.reduce(
9289
- (U, h) => h.map((G, ce) => [...U[ce] || [], h[ce]]),
9297
+ (U, h) => h.map((G, fe) => [...U[fe] || [], h[fe]]),
9290
9298
  []
9291
9299
  );
9292
- 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);
9293
9301
  }
9294
- }, 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);
9295
9303
  return t({ openChildCmp: Y }), (i, v) => {
9296
9304
  var T;
9297
- return i.disabled ? $("", !0) : (m(), O("div", Kh, [
9298
- (m(!0), O(ve, null, Ae(c(V), (D, U) => {
9299
- var h, G, ce;
9300
- 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", {
9301
9309
  key: U,
9302
9310
  class: ye(c(M))
9303
9311
  }, [
9304
- D.separator ? (m(), O(ve, { key: 0 }, [
9312
+ D.separator ? (m(), w(ve, { key: 0 }, [
9305
9313
  Ge(" : ")
9306
- ], 64)) : (m(), O(ve, { key: 1 }, [
9314
+ ], 64)) : (m(), w(ve, { key: 1 }, [
9307
9315
  E("div", {
9308
9316
  class: ye({
9309
9317
  dp__inc_dec_button: !0,
9310
- dp__inc_dec_button_disabled: c(g)(D.type)
9318
+ dp__inc_dec_button_disabled: c(b)(D.type)
9311
9319
  }),
9312
9320
  role: "button",
9313
9321
  "data-test": "time-inc-btn",
9314
9322
  "aria-label": (h = c(l).ariaLabels) == null ? void 0 : h.incrementValue(D.type),
9315
9323
  tabindex: "0",
9316
9324
  onKeydown: [
9317
- de((_) => L(D.type), ["enter"]),
9318
- de((_) => L(D.type), ["space"])
9325
+ ce((_) => L(D.type), ["enter"]),
9326
+ ce((_) => L(D.type), ["space"])
9319
9327
  ],
9320
9328
  onClick: (_) => L(D.type),
9321
9329
  ref_for: !0,
9322
- ref: (_) => b(_, U, 0)
9330
+ ref: (_) => g(_, U, 0)
9323
9331
  }, [
9324
9332
  i.$slots["arrow-up"] ? q(i.$slots, "arrow-up", { key: 0 }) : $("", !0),
9325
9333
  i.$slots["arrow-up"] ? $("", !0) : (m(), pe(c(Fi), { key: 1 }))
@@ -9331,19 +9339,19 @@ const dh = (e, t, n, r) => {
9331
9339
  tabindex: "0",
9332
9340
  "data-test": `${D.type}-toggle-overlay-btn`,
9333
9341
  onKeydown: [
9334
- de((_) => K(D.type), ["enter"]),
9335
- de((_) => K(D.type), ["space"])
9342
+ ce((_) => K(D.type), ["enter"]),
9343
+ ce((_) => K(D.type), ["space"])
9336
9344
  ],
9337
9345
  onClick: (_) => K(D.type),
9338
9346
  ref_for: !0,
9339
- ref: (_) => b(_, U, 1)
9347
+ ref: (_) => g(_, U, 1)
9340
9348
  }, [
9341
9349
  i.$slots[D.type] ? q(i.$slots, D.type, {
9342
9350
  key: 0,
9343
9351
  text: c(j)(D.type).text,
9344
9352
  value: c(j)(D.type).value
9345
9353
  }) : $("", !0),
9346
- i.$slots[D.type] ? $("", !0) : (m(), O(ve, { key: 1 }, [
9354
+ i.$slots[D.type] ? $("", !0) : (m(), w(ve, { key: 1 }, [
9347
9355
  Ge(me(c(j)(D.type).text), 1)
9348
9356
  ], 64))
9349
9357
  ], 42, Qh),
@@ -9354,15 +9362,15 @@ const dh = (e, t, n, r) => {
9354
9362
  }),
9355
9363
  role: "button",
9356
9364
  "data-test": "time-dec-btn",
9357
- "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),
9358
9366
  tabindex: "0",
9359
9367
  onKeydown: [
9360
- de((_) => L(D.type, !1), ["enter"]),
9361
- de((_) => L(D.type, !1), ["space"])
9368
+ ce((_) => L(D.type, !1), ["enter"]),
9369
+ ce((_) => L(D.type, !1), ["space"])
9362
9370
  ],
9363
9371
  onClick: (_) => L(D.type, !1),
9364
9372
  ref_for: !0,
9365
- ref: (_) => b(_, U, 2)
9373
+ ref: (_) => g(_, U, 2)
9366
9374
  }, [
9367
9375
  i.$slots["arrow-down"] ? q(i.$slots, "arrow-down", { key: 0 }) : $("", !0),
9368
9376
  i.$slots["arrow-down"] ? $("", !0) : (m(), pe(c(Wi), { key: 1 }))
@@ -9370,16 +9378,16 @@ const dh = (e, t, n, r) => {
9370
9378
  ], 64))
9371
9379
  ], 2);
9372
9380
  }), 128)),
9373
- i.is24 ? $("", !0) : (m(), O("div", Gh, [
9381
+ i.is24 ? $("", !0) : (m(), w("div", Gh, [
9374
9382
  i.$slots["am-pm-button"] ? q(i.$slots, "am-pm-button", {
9375
9383
  key: 0,
9376
9384
  toggle: le,
9377
- value: w.value
9385
+ value: O.value
9378
9386
  }) : $("", !0),
9379
- i.$slots["am-pm-button"] ? $("", !0) : (m(), O("button", {
9387
+ i.$slots["am-pm-button"] ? $("", !0) : (m(), w("button", {
9380
9388
  key: 1,
9381
9389
  ref_key: "amPmButton",
9382
- ref: d,
9390
+ ref: f,
9383
9391
  type: "button",
9384
9392
  class: "dp__pm_am_button",
9385
9393
  role: "button",
@@ -9387,15 +9395,15 @@ const dh = (e, t, n, r) => {
9387
9395
  tabindex: "0",
9388
9396
  onClick: le,
9389
9397
  onKeydown: [
9390
- de(We(le, ["prevent"]), ["enter"]),
9391
- de(We(le, ["prevent"]), ["space"])
9398
+ ce(Ye(le, ["prevent"]), ["enter"]),
9399
+ ce(Ye(le, ["prevent"]), ["space"])
9392
9400
  ]
9393
- }, me(w.value), 41, Jh))
9401
+ }, me(O.value), 41, Jh))
9394
9402
  ])),
9395
- (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, {
9396
9404
  key: U,
9397
9405
  name: c(u)(y[D.type]),
9398
- css: c(f)
9406
+ css: c(d)
9399
9407
  }, {
9400
9408
  default: ne(() => [
9401
9409
  y[D.type] ? (m(), pe(Zt, {
@@ -9455,9 +9463,9 @@ const dh = (e, t, n, r) => {
9455
9463
  "overlay-closed"
9456
9464
  ],
9457
9465
  setup(e, { expose: t, emit: n }) {
9458
- 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);
9459
9467
  et(() => {
9460
- 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);
9461
9469
  });
9462
9470
  const S = H(() => r.range && r.modelAuto ? Xi(r.internalModelValue) : !0), F = W(!1), M = (L) => ({
9463
9471
  hours: Array.isArray(r.hours) ? r.hours[L] : r.hours,
@@ -9473,7 +9481,7 @@ const dh = (e, t, n, r) => {
9473
9481
  return L;
9474
9482
  }), R = (L, Q = !1, le = "") => {
9475
9483
  Q || n("reset-flow"), F.value = L, r.arrowNavigation && (o(L), L || n("overlay-closed")), Mt(() => {
9476
- le !== "" && g.value[0] && g.value[0].openChildCmp(le);
9484
+ le !== "" && b.value[0] && b.value[0].openChildCmp(le);
9477
9485
  });
9478
9486
  }, j = H(() => ({
9479
9487
  dp__button: !0,
@@ -9489,19 +9497,19 @@ const dh = (e, t, n, r) => {
9489
9497
  };
9490
9498
  return t({ toggleTimePicker: R }), (L, Q) => {
9491
9499
  var le;
9492
- return m(), O("div", null, [
9493
- L.timePicker ? $("", !0) : Ye((m(), O("div", {
9500
+ return m(), w("div", null, [
9501
+ L.timePicker ? $("", !0) : Ue((m(), w("div", {
9494
9502
  key: 0,
9495
9503
  class: ye(c(j)),
9496
9504
  role: "button",
9497
- "aria-label": (le = c(f).ariaLabels) == null ? void 0 : le.openTimePicker,
9505
+ "aria-label": (le = c(d).ariaLabels) == null ? void 0 : le.openTimePicker,
9498
9506
  tabindex: "0",
9499
9507
  "data-test": "open-time-picker-btn",
9500
9508
  ref_key: "openTimePickerBtn",
9501
- ref: d,
9509
+ ref: f,
9502
9510
  onKeydown: [
9503
- Q[0] || (Q[0] = de((Y) => R(!0), ["enter"])),
9504
- 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"]))
9505
9513
  ],
9506
9514
  onClick: Q[2] || (Q[2] = (Y) => R(!0))
9507
9515
  }, [
@@ -9512,12 +9520,12 @@ const dh = (e, t, n, r) => {
9512
9520
  ]),
9513
9521
  Ce(Je, {
9514
9522
  name: c(y)(F.value),
9515
- css: c(w)
9523
+ css: c(O)
9516
9524
  }, {
9517
9525
  default: ne(() => {
9518
9526
  var Y;
9519
9527
  return [
9520
- F.value || L.timePicker ? (m(), O("div", {
9528
+ F.value || L.timePicker ? (m(), w("div", {
9521
9529
  key: 0,
9522
9530
  class: "dp__overlay",
9523
9531
  ref_key: "overlayRef",
@@ -9534,19 +9542,19 @@ const dh = (e, t, n, r) => {
9534
9542
  setMinutes: N,
9535
9543
  setSeconds: K
9536
9544
  }) : $("", !0),
9537
- L.$slots["time-picker-overlay"] ? $("", !0) : (m(), O("div", r0, [
9538
- (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 }, {
9539
9547
  ...L.$props,
9540
9548
  order: z,
9541
- hours: b.hours,
9542
- minutes: b.minutes,
9543
- seconds: b.seconds,
9549
+ hours: g.hours,
9550
+ minutes: g.minutes,
9551
+ seconds: g.seconds,
9544
9552
  closeTimePickerBtn: s.value,
9545
9553
  disabled: z === 0 ? L.fixedStart : L.fixedEnd
9546
9554
  }, {
9547
9555
  ref_for: !0,
9548
9556
  ref_key: "timeInputRefs",
9549
- ref: g,
9557
+ ref: b,
9550
9558
  "onUpdate:hours": (i) => P(k(i, z, "hours")),
9551
9559
  "onUpdate:minutes": (i) => N(k(i, z, "minutes")),
9552
9560
  "onUpdate:seconds": (i) => K(k(i, z, "seconds")),
@@ -9563,19 +9571,19 @@ const dh = (e, t, n, r) => {
9563
9571
  [bt, z === 0 ? !0 : c(S)]
9564
9572
  ])), 128))
9565
9573
  ])),
9566
- L.timePicker ? $("", !0) : Ye((m(), O("div", {
9574
+ L.timePicker ? $("", !0) : Ue((m(), w("div", {
9567
9575
  key: 2,
9568
9576
  ref_key: "closeTimePickerBtn",
9569
9577
  ref: s,
9570
9578
  class: ye(c(j)),
9571
9579
  role: "button",
9572
- "aria-label": (Y = c(f).ariaLabels) == null ? void 0 : Y.closeTimePicker,
9580
+ "aria-label": (Y = c(d).ariaLabels) == null ? void 0 : Y.closeTimePicker,
9573
9581
  tabindex: "0",
9574
9582
  onKeydown: [
9575
- Q[3] || (Q[3] = de((b) => R(!1), ["enter"])),
9576
- 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"]))
9577
9585
  ],
9578
- onClick: Q[5] || (Q[5] = (b) => R(!1))
9586
+ onClick: Q[5] || (Q[5] = (g) => R(!1))
9579
9587
  }, [
9580
9588
  L.$slots["calendar-icon"] ? q(L.$slots, "calendar-icon", { key: 0 }) : $("", !0),
9581
9589
  L.$slots["calendar-icon"] ? $("", !0) : (m(), pe(c(Br), { key: 1 }))
@@ -9594,15 +9602,15 @@ const dh = (e, t, n, r) => {
9594
9602
  }), l0 = (e, t) => {
9595
9603
  const { isDisabled: n, matchDate: r, getWeekFromDate: a } = rt(t), o = W(null), l = W(I()), u = (i) => {
9596
9604
  !i.current && t.hideOffsetDates || (o.value = i.value);
9597
- }, f = () => {
9605
+ }, d = () => {
9598
9606
  o.value = null;
9599
- }, 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) => {
9600
9608
  const T = () => e.value ? v ? e.value[0] || null : e.value[1] : null, D = e.value && Array.isArray(e.value) ? T() : null;
9601
9609
  return Se(I(i.value), D);
9602
- }, d = (i) => {
9610
+ }, f = (i) => {
9603
9611
  const v = Array.isArray(e.value) ? e.value[0] : null;
9604
- return i ? !Fe(o.value || null, v) : !0;
9605
- }, 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) => {
9606
9614
  if (t.autoRange || t.weekPicker) {
9607
9615
  if (o.value) {
9608
9616
  if (t.hideOffsetDates && !i.current)
@@ -9620,7 +9628,7 @@ const dh = (e, t, n, r) => {
9620
9628
  if (t.hideOffsetDates && !i.current)
9621
9629
  return !1;
9622
9630
  const T = a(I(o.value));
9623
- 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);
9624
9632
  }
9625
9633
  return !1;
9626
9634
  }
@@ -9653,23 +9661,23 @@ const dh = (e, t, n, r) => {
9653
9661
  dp__date_hover: te(i)
9654
9662
  }), le = (i) => ({
9655
9663
  ...Y(i),
9656
- ...b(i),
9664
+ ...g(i),
9657
9665
  dp__range_between_week: X(i) && t.weekPicker
9658
9666
  }), Y = (i) => ({
9659
9667
  dp__range_start: t.multiCalendars > 0 ? i.current && s(i) && j() : s(i) && j(),
9660
9668
  dp__range_end: t.multiCalendars > 0 ? i.current && s(i, !1) && j() : s(i, !1) && j(),
9661
9669
  dp__range_between: X(i) && !t.weekPicker,
9662
- dp__date_hover_start: g(te(i), i, !0),
9663
- dp__date_hover_end: g(te(i), i, !1)
9664
- }), 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) => ({
9665
9673
  ...Y(i),
9666
9674
  dp__cell_auto_range: F(i),
9667
9675
  dp__cell_auto_range_start: M(i),
9668
9676
  dp__cell_auto_range_end: S(i)
9669
- }), 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);
9670
9678
  return {
9671
9679
  setHoverDate: u,
9672
- clearHoverDate: f,
9680
+ clearHoverDate: d,
9673
9681
  getDayClassData: (i) => ({
9674
9682
  ...L(i),
9675
9683
  ...z(i),
@@ -9708,15 +9716,15 @@ const dh = (e, t, n, r) => {
9708
9716
  "recalculate-position"
9709
9717
  ],
9710
9718
  setup(e, { expose: t, emit: n }) {
9711
- 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({
9712
9720
  timePicker: !!(!r.enableTimePicker || r.timePicker || r.monthPicker),
9713
9721
  monthYearInput: !!r.timePicker,
9714
9722
  calendar: !1
9715
- }), 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);
9716
9724
  et(() => {
9717
9725
  var x;
9718
9726
  M.value = !0, !((x = r.presetRanges) != null && x.length) && !y["left-sidebar"] && !y["right-sidebar"] && dt();
9719
- const Z = Ve(S);
9727
+ const Z = He(S);
9720
9728
  if (Z && !r.textInput && !r.inline && (a(!0), N()), Z) {
9721
9729
  const je = (Qe) => {
9722
9730
  !r.monthYearComponent && !r.timePickerComponent && !Object.keys(y).length && Qe.preventDefault(), Qe.stopImmediatePropagation(), Qe.stopPropagation();
@@ -9728,14 +9736,14 @@ const dh = (e, t, n, r) => {
9728
9736
  window.removeEventListener("resize", dt);
9729
9737
  });
9730
9738
  const { arrowRight: R, arrowLeft: j, arrowDown: te, arrowUp: k } = Ot(), P = (x) => {
9731
- x || x === 0 ? g.value[x].triggerTransition(
9739
+ x || x === 0 ? b.value[x].triggerTransition(
9732
9740
  le.value(x),
9733
9741
  Y.value(x)
9734
- ) : g.value.forEach(
9742
+ ) : b.value.forEach(
9735
9743
  (Z, je) => Z.triggerTransition(le.value(je), Y.value(je))
9736
9744
  );
9737
9745
  }, N = () => {
9738
- const x = Ve(S);
9746
+ const x = He(S);
9739
9747
  x && x.focus({ preventScroll: !0 });
9740
9748
  }, K = () => {
9741
9749
  var x;
@@ -9747,7 +9755,7 @@ const dh = (e, t, n, r) => {
9747
9755
  modelValue: Q,
9748
9756
  month: le,
9749
9757
  year: Y,
9750
- time: b,
9758
+ time: g,
9751
9759
  updateTime: z,
9752
9760
  updateMonthYear: i,
9753
9761
  selectDate: v,
@@ -9756,7 +9764,7 @@ const dh = (e, t, n, r) => {
9756
9764
  handleScroll: U,
9757
9765
  handleArrow: h,
9758
9766
  handleSwipe: G,
9759
- getMarker: ce,
9767
+ getMarker: fe,
9760
9768
  selectCurrentDate: _,
9761
9769
  presetDateRange: B
9762
9770
  } = sh(r, n, K, P, V), { setHoverDate: xe, clearHoverDate: he, getDayClassData: ue } = l0(Q, r);
@@ -9769,19 +9777,19 @@ const dh = (e, t, n, r) => {
9769
9777
  },
9770
9778
  { deep: !0 }
9771
9779
  );
9772
- 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 = () => {
9773
- 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);
9774
9782
  x && (F.value = x.getBoundingClientRect().width);
9775
9783
  }, Lt = H(() => (x) => u(le.value(x), Y.value(x))), kt = H(
9776
- () => 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]
9777
9785
  ), Vt = H(
9778
9786
  () => (x) => x === 1
9779
9787
  ), Ur = H(() => r.monthPicker || r.timePicker || r.yearPicker), Lr = H(
9780
9788
  () => ({
9781
- dp__flex_display: f.value.multiCalendars > 0
9789
+ dp__flex_display: d.value.multiCalendars > 0
9782
9790
  })
9783
9791
  ), en = H(() => ({
9784
- dp__instance_calendar: f.value.multiCalendars > 0
9792
+ dp__instance_calendar: d.value.multiCalendars > 0
9785
9793
  })), Ht = H(() => ({
9786
9794
  dp__menu_disabled: r.disabled,
9787
9795
  dp__menu_readonly: r.readonly
@@ -9796,7 +9804,7 @@ const dh = (e, t, n, r) => {
9796
9804
  })
9797
9805
  ), Fr = (x, Z) => x.value(Z).map((je) => ({
9798
9806
  ...je,
9799
- 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))
9800
9808
  })), tn = (x) => {
9801
9809
  x.stopPropagation(), x.stopImmediatePropagation();
9802
9810
  }, p = () => {
@@ -9805,7 +9813,7 @@ const dh = (e, t, n, r) => {
9805
9813
  v(x, Z), r.spaceConfirm && n("select-date");
9806
9814
  }, ee = (x) => {
9807
9815
  var Z;
9808
- (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());
9809
9817
  }, re = (x, Z, je, Qe, ...nn) => {
9810
9818
  if (r.flow[V.value] === x) {
9811
9819
  const ae = Qe ? Z.value[0] : Z.value;
@@ -9836,7 +9844,7 @@ const dh = (e, t, n, r) => {
9836
9844
  var je;
9837
9845
  return m(), pe(Je, {
9838
9846
  appear: "",
9839
- name: (je = c(f).transitions) == null ? void 0 : je.menuAppear,
9847
+ name: (je = c(d).transitions) == null ? void 0 : je.menuAppear,
9840
9848
  mode: "out-in",
9841
9849
  css: !!x.transitions
9842
9850
  }, {
@@ -9853,19 +9861,19 @@ const dh = (e, t, n, r) => {
9853
9861
  onMouseleave: Z[12] || (Z[12] = (...ae) => c(he) && c(he)(...ae)),
9854
9862
  onClick: tn,
9855
9863
  onKeydown: [
9856
- de(p, ["esc"]),
9857
- Z[13] || (Z[13] = de(We((ae) => ot("left"), ["prevent"]), ["left"])),
9858
- Z[14] || (Z[14] = de(We((ae) => ot("up"), ["prevent"]), ["up"])),
9859
- Z[15] || (Z[15] = de(We((ae) => ot("down"), ["prevent"]), ["down"])),
9860
- 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"])),
9861
9869
  Pt
9862
9870
  ]
9863
9871
  }, [
9864
- (x.disabled || x.readonly) && x.inline ? (m(), O("div", {
9872
+ (x.disabled || x.readonly) && x.inline ? (m(), w("div", {
9865
9873
  key: 0,
9866
9874
  class: ye(c(Ht))
9867
9875
  }, null, 2)) : $("", !0),
9868
- !x.inline && !x.teleportCenter ? (m(), O("div", {
9876
+ !x.inline && !x.teleportCenter ? (m(), w("div", {
9869
9877
  key: 1,
9870
9878
  class: ye(c(ke))
9871
9879
  }, null, 2)) : $("", !0),
@@ -9874,11 +9882,11 @@ const dh = (e, t, n, r) => {
9874
9882
  dp__menu_content_wrapper: ((Qe = x.presetRanges) == null ? void 0 : Qe.length) || !!x.$slots["left-sidebar"] || !!x.$slots["right-sidebar"]
9875
9883
  })
9876
9884
  }, [
9877
- x.$slots["left-sidebar"] ? (m(), O("div", u0, [
9885
+ x.$slots["left-sidebar"] ? (m(), w("div", u0, [
9878
9886
  q(x.$slots, "left-sidebar")
9879
9887
  ])) : $("", !0),
9880
- (nn = x.presetRanges) != null && nn.length ? (m(), O("div", s0, [
9881
- (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", {
9882
9890
  key: Nt,
9883
9891
  style: mt(ae.style || {}),
9884
9892
  class: "dp__preset_range",
@@ -9889,7 +9897,7 @@ const dh = (e, t, n, r) => {
9889
9897
  presetDateRange: c(B),
9890
9898
  label: ae.label,
9891
9899
  range: ae.range
9892
- }) : (m(), O(ve, { key: 1 }, [
9900
+ }) : (m(), w(ve, { key: 1 }, [
9893
9901
  Ge(me(ae.label), 1)
9894
9902
  ], 64))
9895
9903
  ], 12, c0))), 128))
@@ -9897,13 +9905,13 @@ const dh = (e, t, n, r) => {
9897
9905
  E("div", {
9898
9906
  class: "dp__instance_calendar",
9899
9907
  ref_key: "calendarWrapperRef",
9900
- ref: w,
9908
+ ref: O,
9901
9909
  role: "document"
9902
9910
  }, [
9903
9911
  E("div", {
9904
9912
  class: ye(c(Lr))
9905
9913
  }, [
9906
- (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", {
9907
9915
  key: ae,
9908
9916
  class: ye(c(en))
9909
9917
  }, [
@@ -9926,7 +9934,7 @@ const dh = (e, t, n, r) => {
9926
9934
  onMonthYearSelect: c(D),
9927
9935
  onOverlayClosed: N
9928
9936
  }), Ze({ _: 2 }, [
9929
- Ae(c(fe), (_e, Qi) => ({
9937
+ Ae(c(de), (_e, Qi) => ({
9930
9938
  name: _e,
9931
9939
  fn: ne((Wr) => [
9932
9940
  q(x.$slots, _e, nt(vt(Wr)))
@@ -9936,7 +9944,7 @@ const dh = (e, t, n, r) => {
9936
9944
  Ce(Ah, Be({
9937
9945
  ref_for: !0,
9938
9946
  ref: (_e) => {
9939
- _e && (g.value[Nt] = _e);
9947
+ _e && (b.value[Nt] = _e);
9940
9948
  },
9941
9949
  "specific-mode": c(Ur),
9942
9950
  "get-week-num": c(T),
@@ -9965,14 +9973,14 @@ const dh = (e, t, n, r) => {
9965
9973
  ], 2))), 128))
9966
9974
  ], 2),
9967
9975
  E("div", null, [
9968
- 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 }, [
9969
9977
  x.enableTimePicker && !x.monthPicker && !x.weekPicker ? (m(), pe(ln(x.timePickerComponent ? x.timePickerComponent : o0), Be({
9970
9978
  key: 0,
9971
9979
  ref_key: "timePickerRef",
9972
9980
  ref: C,
9973
- hours: c(b).hours,
9974
- minutes: c(b).minutes,
9975
- seconds: c(b).seconds,
9981
+ hours: c(g).hours,
9982
+ minutes: c(g).minutes,
9983
+ seconds: c(g).seconds,
9976
9984
  "internal-model-value": e.internalModelValue
9977
9985
  }, x.$props, {
9978
9986
  onMount: Z[4] || (Z[4] = (ae) => ee("timePicker")),
@@ -9992,15 +10000,15 @@ const dh = (e, t, n, r) => {
9992
10000
  ], 64))
9993
10001
  ])
9994
10002
  ], 512),
9995
- x.$slots["right-sidebar"] ? (m(), O("div", f0, [
10003
+ x.$slots["right-sidebar"] ? (m(), w("div", f0, [
9996
10004
  q(x.$slots, "right-sidebar")
9997
10005
  ])) : $("", !0),
9998
- x.showNowButton ? (m(), O("div", d0, [
10006
+ x.showNowButton ? (m(), w("div", d0, [
9999
10007
  x.$slots["now-button"] ? q(x.$slots, "now-button", {
10000
10008
  key: 0,
10001
10009
  selectCurrentDate: c(_)
10002
10010
  }) : $("", !0),
10003
- x.$slots["now-button"] ? $("", !0) : (m(), O("button", {
10011
+ x.$slots["now-button"] ? $("", !0) : (m(), w("button", {
10004
10012
  key: 1,
10005
10013
  type: "button",
10006
10014
  role: "button",
@@ -10053,8 +10061,8 @@ const dh = (e, t, n, r) => {
10053
10061
  }, h0 = (e, t, n, r = {}) => {
10054
10062
  const { window: a = y0, event: o = "pointerdown" } = r;
10055
10063
  return a ? v0(a, o, (l) => {
10056
- const u = Ve(e), f = Ve(t);
10057
- !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);
10058
10066
  }, { passive: !0 }) : void 0;
10059
10067
  }, _0 = /* @__PURE__ */ Oe({
10060
10068
  __name: "VueDatePicker",
@@ -10076,11 +10084,11 @@ const dh = (e, t, n, r) => {
10076
10084
  "invalid-select"
10077
10085
  ],
10078
10086
  setup(e, { expose: t, emit: n }) {
10079
- 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);
10080
10088
  et(() => {
10081
- 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);
10082
10090
  }), Oo(() => {
10083
- r.inline || (window.removeEventListener("scroll", b), window.removeEventListener("resize", z));
10091
+ r.inline || (window.removeEventListener("scroll", g), window.removeEventListener("resize", z));
10084
10092
  });
10085
10093
  const M = xt(a, "all", r.presetRanges), V = xt(a, "input");
10086
10094
  ct(
@@ -10091,7 +10099,7 @@ const dh = (e, t, n, r) => {
10091
10099
  { deep: !0 }
10092
10100
  );
10093
10101
  const { openOnTop: R, menuPosition: j, setMenuPosition: te, setInitialPosition: k } = dh(
10094
- f,
10102
+ d,
10095
10103
  y,
10096
10104
  n,
10097
10105
  r
@@ -10102,7 +10110,7 @@ const dh = (e, t, n, r) => {
10102
10110
  emitModelValue: X,
10103
10111
  formatInputValue: L,
10104
10112
  checkBeforeEmit: Q
10105
- } = ch(n, r, w), le = H(
10113
+ } = ch(n, r, O), le = H(
10106
10114
  () => ({
10107
10115
  dp__main: !0,
10108
10116
  dp__theme_dark: r.dark,
@@ -10110,8 +10118,8 @@ const dh = (e, t, n, r) => {
10110
10118
  dp__flex_display: r.inline,
10111
10119
  dp__flex_display_with_input: r.inlineWithInput
10112
10120
  })
10113
- ), Y = H(() => r.dark ? "dp__theme_dark" : "dp__theme_light"), b = () => {
10114
- 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());
10115
10123
  }, z = () => {
10116
10124
  o.value && te();
10117
10125
  }, i = () => {
@@ -10119,54 +10127,54 @@ const dh = (e, t, n, r) => {
10119
10127
  te(), o.value && n("open");
10120
10128
  }), o.value || G(), K(r.modelValue));
10121
10129
  }, v = () => {
10122
- P.value = "", G(), n("update:model-value", null), n("cleared"), ce();
10130
+ P.value = "", G(), n("update:model-value", null), n("cleared"), fe();
10123
10131
  }, T = () => {
10124
- const fe = N.value;
10125
- 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;
10126
10134
  }, D = () => {
10127
- Q() && T() ? (X(), ce()) : n("invalid-select", N.value);
10128
- }, U = (fe) => {
10129
- X(), r.closeOnAutoApply && !fe && ce();
10130
- }, h = (fe = !1) => {
10131
- 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));
10132
10140
  }, G = () => {
10133
10141
  r.textInput || (N.value = null);
10134
- }, ce = () => {
10135
- 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());
10136
- }, _ = (fe, ke) => {
10137
- 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) {
10138
10146
  N.value = null;
10139
10147
  return;
10140
10148
  }
10141
- N.value = fe, ke && (D(), n("text-submit"));
10149
+ N.value = de, ke && (D(), n("text-submit"));
10142
10150
  }, B = () => {
10143
10151
  r.autoApply && S(N.value) && X();
10144
- }, xe = () => o.value ? ce() : i(), he = (fe) => {
10145
- N.value = fe;
10152
+ }, xe = () => o.value ? fe() : i(), he = (de) => {
10153
+ N.value = de;
10146
10154
  }, ue = H(() => r.textInput && F.value.textInputOptions.format), Re = () => {
10147
- ue.value && (w.value = !0, L()), n("focus");
10155
+ ue.value && (O.value = !0, L()), n("focus");
10148
10156
  }, tt = () => {
10149
- ue.value && (w.value = !1, L()), n("blur");
10150
- }, se = (fe) => {
10151
- f.value && f.value.updateMonthYear(0, {
10152
- month: fi(fe.month),
10153
- 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)
10154
10162
  });
10155
10163
  };
10156
10164
  return h0(
10157
- f,
10165
+ d,
10158
10166
  y,
10159
- r.onClickOutside ? () => r.onClickOutside(T) : ce
10167
+ r.onClickOutside ? () => r.onClickOutside(T) : fe
10160
10168
  ), t({
10161
- closeMenu: ce,
10169
+ closeMenu: fe,
10162
10170
  selectDate: D,
10163
10171
  clearValue: v,
10164
10172
  openMenu: i,
10165
- onScroll: b,
10173
+ onScroll: g,
10166
10174
  formatInputValue: L,
10167
10175
  updateInternalModelValue: he,
10168
10176
  setMonthYear: se
10169
- }), (fe, ke) => (m(), O("div", {
10177
+ }), (de, ke) => (m(), w("div", {
10170
10178
  class: ye(c(le))
10171
10179
  }, [
10172
10180
  Ce(gh, Be({
@@ -10175,52 +10183,52 @@ const dh = (e, t, n, r) => {
10175
10183
  "is-menu-open": o.value,
10176
10184
  "input-value": c(P),
10177
10185
  "onUpdate:input-value": ke[0] || (ke[0] = (be) => lt(P) ? P.value = be : null)
10178
- }, fe.$props, {
10186
+ }, de.$props, {
10179
10187
  onClear: v,
10180
10188
  onOpen: i,
10181
10189
  onSetInputDate: _,
10182
10190
  onSetEmptyDate: c(X),
10183
10191
  onSelectDate: D,
10184
10192
  onToggle: xe,
10185
- onClose: ce,
10193
+ onClose: fe,
10186
10194
  onFocus: Re,
10187
10195
  onBlur: tt
10188
10196
  }), Ze({ _: 2 }, [
10189
10197
  Ae(c(V), (be, Ut) => ({
10190
10198
  name: be,
10191
10199
  fn: ne((dt) => [
10192
- q(fe.$slots, be, nt(vt(dt)))
10200
+ q(de.$slots, be, nt(vt(dt)))
10193
10201
  ])
10194
10202
  }))
10195
10203
  ]), 1040, ["is-menu-open", "input-value", "onSetEmptyDate"]),
10196
10204
  o.value ? (m(), pe(wo, {
10197
10205
  key: 0,
10198
- to: fe.teleport,
10199
- disabled: fe.inline
10206
+ to: de.teleport,
10207
+ disabled: de.inline
10200
10208
  }, [
10201
10209
  o.value ? (m(), pe(p0, Be({
10202
10210
  key: 0,
10203
10211
  ref_key: "dpMenuRef",
10204
- ref: f,
10212
+ ref: d,
10205
10213
  class: c(Y),
10206
10214
  style: c(j),
10207
10215
  "open-on-top": c(R)
10208
- }, fe.$props, {
10216
+ }, de.$props, {
10209
10217
  "internal-model-value": c(N),
10210
10218
  "onUpdate:internal-model-value": ke[1] || (ke[1] = (be) => lt(N) ? N.value = be : null),
10211
- onClosePicker: ce,
10219
+ onClosePicker: fe,
10212
10220
  onSelectDate: D,
10213
10221
  onAutoApply: h,
10214
10222
  onTimeUpdate: B,
10215
- onFlowStep: ke[2] || (ke[2] = (be) => fe.$emit("flow-step", be)),
10216
- onUpdateMonthYear: ke[3] || (ke[3] = (be) => fe.$emit("update-month-year", be)),
10217
- 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))),
10218
10226
  onRecalculatePosition: c(te)
10219
10227
  }), Ze({ _: 2 }, [
10220
10228
  Ae(c(M), (be, Ut) => ({
10221
10229
  name: be,
10222
10230
  fn: ne((dt) => [
10223
- q(fe.$slots, be, nt(vt({ ...dt })))
10231
+ q(de.$slots, be, nt(vt({ ...dt })))
10224
10232
  ])
10225
10233
  }))
10226
10234
  ]), 1040, ["class", "style", "open-on-top", "internal-model-value", "onRecalculatePosition"])) : $("", !0)
@@ -10272,19 +10280,19 @@ const g0 = { class: "rm-datepicker" }, V0 = /* @__PURE__ */ Oe({
10272
10280
  }
10273
10281
  return et(() => {
10274
10282
  n.currentDate && (r.value = n.currentDate);
10275
- }), (l, u) => (m(), O("div", g0, [
10276
- 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), [
10277
10285
  [bt, e.label]
10278
10286
  ]),
10279
10287
  Ce(c(Eo), Be({
10280
10288
  modelValue: r.value,
10281
- "onUpdate:modelValue": u[0] || (u[0] = (f) => r.value = f),
10289
+ "onUpdate:modelValue": u[0] || (u[0] = (d) => r.value = d),
10282
10290
  "enable-time-picker": !1,
10283
10291
  "auto-apply": "",
10284
10292
  clearable: !!e.currentDate
10285
10293
  }, c(a), {
10286
10294
  "onUpdate:modelValue": o,
10287
- onCleared: u[1] || (u[1] = (f) => t("delete"))
10295
+ onCleared: u[1] || (u[1] = (d) => t("delete"))
10288
10296
  }), null, 16, ["modelValue", "clearable"])
10289
10297
  ]));
10290
10298
  }
@@ -10311,7 +10319,7 @@ const w0 = {
10311
10319
  t.dynamic && (n.value = !0, setTimeout(() => {
10312
10320
  n.value = !1;
10313
10321
  }, +t.duration));
10314
- }), (a, o) => (m(), O("div", {
10322
+ }), (a, o) => (m(), w("div", {
10315
10323
  class: ye([
10316
10324
  "rm-tooltip",
10317
10325
  `position-${e.position}`,
@@ -10324,7 +10332,7 @@ const w0 = {
10324
10332
  onMouseout: r
10325
10333
  }, [
10326
10334
  q(a.$slots, "default"),
10327
- e.label ? (m(), O("div", w0, [
10335
+ e.label ? (m(), w("div", w0, [
10328
10336
  E("p", O0, me(e.label), 1)
10329
10337
  ])) : $("", !0)
10330
10338
  ], 34));
@@ -10340,7 +10348,7 @@ const $0 = { class: "rm-avatar__overlay" }, k0 = ["src"], P0 = { class: "rm-avat
10340
10348
  },
10341
10349
  setup(e) {
10342
10350
  const t = e, n = H(() => t.label.trim().replace(/\s+/g, " ").split(" ").map((r) => r[0].toUpperCase()).join("").slice(0, 2));
10343
- return (r, a) => (m(), O("div", {
10351
+ return (r, a) => (m(), w("div", {
10344
10352
  class: ye([
10345
10353
  "rm-avatar",
10346
10354
  {
@@ -10350,7 +10358,7 @@ const $0 = { class: "rm-avatar__overlay" }, k0 = ["src"], P0 = { class: "rm-avat
10350
10358
  ])
10351
10359
  }, [
10352
10360
  E("div", $0, [
10353
- e.avatar ? (m(), O("img", {
10361
+ e.avatar ? (m(), w("img", {
10354
10362
  key: 0,
10355
10363
  src: e.avatar,
10356
10364
  class: "rm-avatar__avatar-image",
@@ -10379,7 +10387,7 @@ const T0 = {
10379
10387
  return (t, n) => (m(), pe(wo, { to: "body" }, [
10380
10388
  Ce(Je, { name: "fade" }, {
10381
10389
  default: ne(() => [
10382
- e.isActive ? Ye((m(), O("div", T0, S0)), [
10390
+ e.isActive ? Ue((m(), w("div", T0, S0)), [
10383
10391
  [c(vi), e.isLock && e.isActive]
10384
10392
  ]) : $("", !0)
10385
10393
  ]),